/* ============================================
   LEVVE - Auth Pages CSS
   ============================================ */

:root {
    --primary: #ff6600;
    --primary-dark: #e55a00;
    --primary-light: #ff8533;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray-dark: #4a4a5a;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-lighter: #e5e7eb;
    --light: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--light);
    min-height: 100vh;
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Brand Side */
.auth-brand {
    flex: 1;
    background-image: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(45, 45, 68, 0.9)),
                      url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 450px;
}

.brand-logo {
    height: 120px;
    margin-bottom: 32px;
}

.brand-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.brand-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.brand-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-features .feature i {
    font-size: 2rem;
    color: var(--primary);
}

.brand-features .feature span {
    font-size: 0.9rem;
}

.brand-benefits {
    text-align: left;
}

.brand-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-benefits .benefit i {
    color: var(--primary);
    font-size: 1.25rem;
}

.brand-benefits .benefit span {
    font-size: 1rem;
}

/* Form Side */
.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.auth-form-wrapper.full-width {
    flex: 1;
    max-width: 100%;
}

.auth-simple .auth-form-wrapper {
    background: var(--light);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-simple .auth-form-container {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Auth Header */
.auth-header {
    margin-bottom: 32px;
}

.auth-header.centered {
    text-align: center;
}

.auth-logo {
    height: 80px;
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Flash Messages */
.flash-messages-auth {
    margin-bottom: 24px;
}

.alert-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

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

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

.alert-auth.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-auth.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group .label-optional {
    font-weight: 500;
    color: var(--gray-light);
    text-transform: none;
    letter-spacing: 0;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-top: 6px;
    line-height: 1.4;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 16px;
    color: var(--gray-light);
    font-size: 1rem;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s;
}

.input-icon input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
}

/* Campo senha: espaço para o texto não encostar no olhinho */
.input-icon-password input {
    padding-right: 3.25rem;
}

.input-icon input::placeholder {
    color: var(--gray-light);
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: 0;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--gray);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    transition: color 0.2s, background 0.2s;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(255, 102, 0, 0.08);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.password-toggle i {
    font-size: 1.05rem;
    pointer-events: none;
}

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

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-wrapper .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gray-lighter);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--white);
}

.checkbox-wrapper a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

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

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

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

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

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.auth-divider span {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* Footer */
.auth-footer {
    text-align: center;
}

.auth-footer.centered {
    margin-top: 24px;
}

.auth-footer p {
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Social Login */
.auth-social {
    text-align: center;
    margin-top: 24px;
}

.auth-social p {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--gray-lighter);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn.google {
    color: var(--dark);
    background: var(--white);
}

.social-btn.google:hover {
    border-color: #db4437;
    background: #db4437;
    color: var(--white);
}

.social-btn.google i {
    font-size: 1.1rem;
    color: #db4437;
}

.social-btn.google:hover i {
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-brand {
        display: none;
    }
    
    .auth-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        padding: 16px;
    }
    
    .auth-simple .auth-form-container {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .brand-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .social-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}