/* ===== Auth Pages Premium Styles ===== */

.auth-page {
    background-color: #050505;
    /* Deep, deep dark background */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary, #c9d1d9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Background Effects */
.auth-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    animation: auth-float 25s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.auth-orb-primary {
    top: -20%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.4) 0%, transparent 60%);
}

.auth-orb-secondary {
    bottom: -20%;
    right: 5%;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, #0f172a 0%, #1e1b4b 50%, transparent 70%);
    /* Deep blue/purple */
    animation-delay: -7s;
}

.auth-orb-tertiary {
    top: 40%;
    right: -10%;
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.25) 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes auth-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 8%) scale(0.95);
    }

    100% {
        transform: translate(-10%, -5%) scale(1.05);
    }
}

/* Container & Card */
.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: formFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    background: rgba(17, 24, 32, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Mais sutil */
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    /* Menos exagerada */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.25), transparent);
    z-index: 1;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.auth-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 212, 170, 0.02) 100%);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.03);
}

.auth-logo-icon svg {
    color: var(--color-primary, #00d4aa);
    filter: drop-shadow(0 0 6px rgba(0, 212, 170, 0.4));
    width: 20px;
    height: 20px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary, #8899aa);
    /* variables.css standard */
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    margin-left: 2px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--color-primary, #00d4aa);
}

.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    color: var(--color-primary, #00d4aa);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.forgot-link:hover {
    color: var(--color-primary-hover, #00f0c0);
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(0, 212, 170, 0.3);
}

/* Input Wrappers */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-wrapper input:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary, #00d4aa);
    background: rgba(0, 212, 170, 0.02);
    box-shadow:
        0 0 0 3px rgba(0, 212, 170, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted, #5a6b7c);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrapper input:focus~.input-icon,
.input-wrapper input:not(:placeholder-shown)~.input-icon {
    color: var(--color-primary, #00d4aa);
    transform: scale(1.05);
    /* Mais sutil que 1.1 */
    filter: drop-shadow(0 0 3px rgba(0, 212, 170, 0.3));
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted, #5a6b7c);
    cursor: pointer;
    padding: 4px;
    /* Diminuído para manter sutileza */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 6px;
}

.password-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.input-wrapper input:focus~.password-toggle {
    color: var(--text-secondary, #8899aa);
}

/* Buttons */
.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--color-primary, #00d4aa) 0%, var(--color-primary-dark, #00a888) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 212, 170, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: var(--text-inverse, #0a0e14);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    /* Mais colado */
}

.auth-form .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    /* Menos exagerado */
    box-shadow: 0 6px 16px rgba(0, 212, 170, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--color-primary-hover, #00f0c0) 0%, var(--color-primary, #00d4aa) 100%);
}

.auth-form .btn-primary:hover::after {
    left: 150%;
}

.auth-form .btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 212, 170, 0.2);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 12px 18px;
    /* Reduzido padding do botãoão */
    font-size: 14px;
    border-radius: 10px;
}

/* 2FA Step (Hidden usually) */
#twoFactorStep {
    animation: formFadeIn 0.5s forwards;
    position: relative;
    z-index: 2;
}

.otp-inputs input {
    width: 40px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    text-align: center;
    transition: all 0.3s;
}

.otp-inputs input:focus {
    border-color: var(--color-primary, #00d4aa);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    transform: translateY(-1px);
    background: rgba(0, 212, 170, 0.02);
}

/* Footer & Links */
.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary, #8899aa);
    position: relative;
    z-index: 2;
}

.auth-link {
    color: var(--color-primary, #00d4aa);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: all 0.2s;
}

.auth-link:hover {
    color: var(--color-primary-hover, #00f0c0);
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(0, 212, 170, 0.3);
}

.auth-link svg {
    transition: transform 0.2s;
}

.auth-link:hover svg {
    transform: translateX(-4px);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 36px 24px;
        border-radius: 16px;
    }

    .auth-logo {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .auth-logo-icon {
        width: 40px;
        height: 40px;
    }

    .auth-logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }
}
/* ===== Auth PRO Badge ===== */
.auth-pro-badge {
    font-size: 10px;
    font-weight: 800;
    color: #00d4aa;
    background: linear-gradient(135deg, rgba(0, 240, 192, 0.12) 0%, rgba(0, 168, 136, 0.08) 100%);
    border: 1px solid rgba(0, 212, 170, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.1);
    margin-left: 6px;
    vertical-align: 2px;
}

/* ===== Auth Logo Image ===== */
.auth-logo-img {
    height: 36px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 212, 170, 0.2));
}
