/* auth.css - EuroMarket Login & Registration (Warm & Clean Edition) */

/* === COMMON PAGE BACKGROUND === */
.login-page,
.register-page {
    min-height: 100vh;
    background: #FAFAF8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* === CARD === */
.login-card,
.register-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
}

/* === HEADER === */
.login-header,
.register-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo,
.register-logo {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1E3A8A;
    text-decoration: none;
    margin-bottom: 16px;
}

.login-logo span,
.register-logo span {
    font-style: italic;
    color: #3B82F6;
}

.login-header h2,
.register-header h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    text-transform: none;
}

.login-header p,
.register-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* === DIVIDER === */
.login-divider,
.register-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 2px;
    margin: 0 auto 28px;
}

/* === GOOGLE BUTTON (Login only) === */
.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 1px solid #E5E5E0;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1A1A1A;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.btn-google-login:hover {
    border-color: #1E3A8A;
    background: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

/* === SEPARATOR === */
.separator {
    text-align: center;
    color: #A0A0A0;
    font-size: 0.85rem;
    margin-bottom: 24px;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 35px);
    height: 1px;
    background: #E5E7EB;
}

.separator::before { left: 0; }
.separator::after { right: 0; }

/* === FORM STYLES === */
.login-form,
.register-form {
    margin-bottom: 20px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #A0A0A0;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #1A1A1A;
    background: #FAFAF8;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus,
.register-form input:focus {
    outline: none;
    border-color: #1E3A8A;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-help {
    text-align: right;
    margin-top: 12px;
}

.form-help a {
    font-size: 0.85rem;
    color: #1E3A8A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-help a:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* === SUBMIT BUTTONS === */
.btn-login-submit,
.btn-register-submit {
    width: 100%;
    padding: 14px;
    background: #1E3A8A;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-sizing: border-box;
}

.btn-login-submit:hover,
.btn-register-submit:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-login-submit:active,
.btn-register-submit:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-login-submit:hover .btn-arrow,
.btn-register-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* === FOOTER LINKS === */
.register-footer,
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #666;
}

.register-footer a,
.login-footer a {
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-footer a:hover,
.login-footer a:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* === ERROR MESSAGES === */
.login-error,
.register-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    border: 1px solid #FECACA;
    display: none;
    box-sizing: border-box;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .login-card,
    .register-card {
        padding: 40px 32px;
    }
    
    .login-logo,
    .register-logo {
        font-size: 2rem;
    }
    
    .login-header h2,
    .register-header h2 {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .login-page,
    .register-page {
        padding: 20px 16px;
    }
    
    .login-card,
    .register-card {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .login-logo,
    .register-logo {
        font-size: 1.8rem;
    }
    
    .login-header h2,
    .register-header h2 {
        font-size: 18px;
    }
}