/* ============================================================
   AUTH PAGES - LOGIN / REGISTER
   ============================================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #12121a;
    --bg-card-hover: #151520;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --border-color: #1a1a25;
    --shadow-color: rgba(108, 92, 231, 0.15);
}

.auth-page {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    background: #0a0a0f;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* LEFT SIDE - BRANDING */
.auth-left {
    background: linear-gradient(135deg, #6c5ce7 0%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.auth-branding {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 48px;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.auth-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.auth-feature svg {
    flex-shrink: 0;
}

/* RIGHT SIDE - FORM */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #0a0a0f;
}

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

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

.auth-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: #a0a0b0;
}

.auth-header p a {
    color: #6c5ce7 !important;
}

.auth-header a {
    color: #6c5ce7;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-header a:hover {
    color: #a78bfa;
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

/* FORM */
.auth-form {
    margin-bottom: 32px;
}

/* Override style.css para labels */
.auth-page .form-label,
.auth-page label,
.auth-page .form-group > label {
    color: #ffffff !important;
    font-weight: 500;
    display: block !important;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 1 !important;
    visibility: visible !important;
}

.auth-form .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #a0a0b0;
}

/* Garantir que textos fiquem visiveis */
.auth-page .form-input::placeholder {
    color: #a0a0b0 !important;
}

.auth-page .checkbox-label {
    color: #a0a0b0 !important;
}

.auth-page .forgot-link {
    color: #6c5ce7 !important;
}

/* Labels especificos */
.auth-page .auth-form .form-label {
    color: #ffffff !important;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-page label[for] {
    color: #ffffff !important;
}

.auth-page .form-group label {
    color: #ffffff !important;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: #a0a0b0;
    pointer-events: none;
}

.input-icon-wrapper .form-input {
    padding-left: 48px;
    color: #ffffff;
}

.input-icon-wrapper .form-input::placeholder {
    color: #a0a0b0 !important;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #a0a0b0;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #a0a0b0;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #a0a0b0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #3a3a4a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #6c5ce7;
    border-color: #6c5ce7;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.forgot-link {
    font-size: 14px;
    color: #6c5ce7;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #a78bfa;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1e1e2e;
    font-size: 15px;
    color: #a0a0b0;
}

.auth-footer p {
    color: #a0a0b0 !important;
}

.auth-footer a {
    color: #6c5ce7 !important;
    font-weight: 600;
}

/* PASSWORD STRENGTH */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #1e1e2e;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    color: #a0a0b0;
}

/* SOCIAL LOGIN */
.social-login {
    margin-top: 32px;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1e1e2e;
}

.social-divider span {
    font-size: 13px;
    color: #a0a0b0;
    text-transform: uppercase;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #12121a;
    border: 1px solid #1e1e2e;
    border-radius: 12px;
    color: #a0a0b0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #6c5ce7;
    background: #1a1a25;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 40px 24px;
    }
}

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

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

    .social-buttons {
        grid-template-columns: 1fr;
    }

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