/* ===== Login Page Styles ===== */
@import 'common.css';

/* Back Arrow */
.back-arrow {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.back-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-4px);
}

.back-arrow i {
    margin-right: 2px;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    min-width: 64px;
}

.nav-item i {
    font-size: 20px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item:hover i {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-item.dopgo {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(5, 155, 161, 0.4);
}

.nav-item.dopgo:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
}

.nav-item.dopgo.active {
    color: white;
}

.nav-item.dopgo.active i {
    color: white;
}

.nav-item.dopgo i {
    font-size: 24px;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .bottom-nav {
        padding: 6px 2px;
    }
    
    .nav-item {
        padding: 6px 8px;
        min-width: 56px;
        font-size: 9px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .nav-item.dopgo {
        width: 48px;
        height: 48px;
        margin-top: -16px;
    }
    
    .nav-item.dopgo i {
        font-size: 20px;
    }
}

/* Auth Container */
.auth-container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: stretch;
}

/* Auth Card */
.auth-card {
    flex: 1;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--bg-tertiary);
    padding: 6px;
    border-radius: var(--radius-lg);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Guest Checkout */
.guest-checkout {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.guest-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
}

.guest-link:hover {
    background: var(--primary-color);
    color: white;
}

.guest-link i {
    font-size: 16px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.social-btn i {
    font-size: 20px;
}

.social-btn.google:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-btn.apple:hover {
    background: #000;
    border-color: #000;
    color: white;
}

/* Auth Message */
.auth-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: center;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Auth Modal Popup */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: authModalSlideIn 0.3s ease;
}

@keyframes authModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.auth-modal-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.auth-modal-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.auth-modal-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.auth-modal-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.auth-modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-modal-btn {
    padding: 14px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-modal-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Responsive Modal */
@media (max-width: 480px) {
    .auth-modal-content {
        padding: 30px 24px;
        width: 85%;
    }
    
    .auth-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .auth-modal-content h2 {
        font-size: 20px;
    }
    
    .auth-modal-content p {
        font-size: 14px;
    }
    
    .auth-modal-btn {
        padding: 12px 32px;
        font-size: 15px;
    }
}

/* Benefits Card */
.benefits-card {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
}

.benefits-card h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    font-size: 20px;
    color: #00e676;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .auth-container {
        gap: 30px;
    }

    .auth-card {
        padding: 30px;
    }

    .benefits-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        align-items: center;
        margin: 20px auto;
        padding: 0 16px;
    }

    .auth-card {
        max-width: 100%;
        width: 100%;
        padding: 30px 24px;
        order: 1;
    }

    .benefits-card {
        max-width: 100%;
        width: 100%;
        padding: 30px 24px;
        order: 2;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .benefits-card h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .social-login {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-btn {
        padding: 14px 10px;
    }

    .social-btn i {
        font-size: 18px;
    }

    .social-btn span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .auth-tabs {
        margin-bottom: 24px;
    }

    .auth-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .auth-btn {
        padding: 14px;
        font-size: 15px;
    }

    .auth-divider {
        margin: 24px 0;
    }

    .social-login {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-btn {
        flex-direction: row;
        justify-content: center;
        padding: 12px 8px;
    }

    .social-btn i {
        font-size: 16px;
    }

    .social-btn span {
        font-size: 11px;
    }

    .benefits-card {
        padding: 24px 20px;
    }

    .benefits-card h2 {
        font-size: 20px;
    }

    .benefits-list li {
        padding: 12px 0;
        font-size: 14px;
        gap: 12px;
    }

    .benefits-list li i {
        font-size: 18px;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    .auth-container {
        max-width: 1100px;
        gap: 60px;
    }

    .auth-card {
        padding: 50px;
    }

    .benefits-card {
        padding: 50px;
    }

    .auth-header h1 {
        font-size: 32px;
    }

    .benefits-card h2 {
        font-size: 32px;
    }
}
