:root {
    --auth-gold: #cdb998;
    --auth-gold-soft: #e6d6bb;
    --auth-gold-deep: #9d8869;
    --auth-bg-0: #060606;
    --auth-bg-1: #0d0a08;
    --auth-bg-2: #1a1410;
    --auth-text: #ece4d4;
    --auth-text-dim: #8a8276;
    --auth-glass: rgba(14, 11, 9, 0.62);
    --auth-glass-border: rgba(205, 185, 152, 0.22);
    --auth-input-bg: rgba(255, 255, 255, 0.04);
    --auth-input-border: rgba(205, 185, 152, 0.28);
    --auth-danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg-0);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background:
        linear-gradient(135deg, rgba(6, 6, 6, 0.78) 0%, rgba(13, 10, 8, 0.72) 50%, rgba(6, 6, 6, 0.85) 100%),
        url('https://cdn.mulheresvip.net/img/login-backgound.jpg') center/cover no-repeat fixed;
    overflow: hidden;
}

.auth-stage::before,
.auth-stage::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    animation: auth-float 18s ease-in-out infinite;
}
.auth-stage::before {
    width: 420px; height: 420px;
    top: -120px; left: -120px;
    background: radial-gradient(circle, rgba(205, 185, 152, 0.28), transparent 70%);
}
.auth-stage::after {
    width: 520px; height: 520px;
    bottom: -180px; right: -160px;
    background: radial-gradient(circle, rgba(157, 136, 105, 0.24), transparent 70%);
    animation-delay: -9s;
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}

.auth-grain {
    position: absolute; inset: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.auth-shell {
    position: relative;
    width: 100%;
    max-width: 460px;
    z-index: 2;
    animation: auth-rise 0.9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes auth-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card {
    position: relative;
    border-radius: 22px;
    padding: 2.5rem 2rem;
    background: var(--auth-glass);
    border: 1px solid var(--auth-glass-border);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    box-shadow:
        0 30px 80px -20px rgba(0,0,0,0.7),
        0 8px 24px -8px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.auth-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(205,185,152,0.45), rgba(205,185,152,0) 35%, rgba(205,185,152,0) 65%, rgba(205,185,152,0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-brand img {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(205,185,152,0.25));
}
.auth-brand .auth-tag {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--auth-gold);
    opacity: 0.85;
    margin-top: 0.25rem;
}

.auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.85rem;
    text-align: center;
    margin: 0 0 0.35rem;
    letter-spacing: 0.02em;
    color: var(--auth-text);
}
.auth-subtitle {
    text-align: center;
    color: var(--auth-text-dim);
    font-size: 0.875rem;
    margin: 0 0 1.75rem;
    letter-spacing: 0.02em;
}

.auth-divider-line {
    display: flex; align-items: center;
    gap: 0.75rem;
    color: var(--auth-text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 1.5rem 0 1.25rem;
}
.auth-divider-line::before,
.auth-divider-line::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205,185,152,0.28), transparent);
}

.auth-field {
    position: relative;
    margin-bottom: 1.1rem;
}
.auth-field input {
    width: 100%;
    padding: 1.15rem 1rem 0.45rem;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    color: var(--auth-text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s;
}
.auth-field input::placeholder { color: transparent; }
.auth-field input:focus {
    border-color: var(--auth-gold);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 4px rgba(205,185,152,0.14), 0 8px 24px -10px rgba(205,185,152,0.35);
}
.auth-field label {
    position: absolute;
    top: 50%; left: 1rem;
    transform: translateY(-50%);
    color: var(--auth-text-dim);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    pointer-events: none;
    transition: all .2s ease;
    background: transparent;
    padding: 0 4px;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--auth-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.auth-field .auth-icon {
    position: absolute;
    top: 50%; right: 1rem;
    transform: translateY(-50%);
    color: var(--auth-text-dim);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color .25s;
}
.auth-field input:focus ~ .auth-icon { color: var(--auth-gold); }

.auth-field .auth-toggle-pass {
    position: absolute;
    top: 50%; right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--auth-text-dim);
    cursor: pointer;
    padding: 0.4rem;
    transition: color .25s;
}
.auth-field .auth-toggle-pass:hover { color: var(--auth-gold); }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 1.5rem;
    font-size: 0.85rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    color: var(--auth-text-dim);
}
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check .auth-check-mark {
    width: 18px; height: 18px;
    border: 1px solid var(--auth-input-border);
    border-radius: 5px;
    background: var(--auth-input-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.auth-check .auth-check-mark::after {
    content: '';
    width: 9px; height: 9px;
    background: linear-gradient(135deg, var(--auth-gold-soft), var(--auth-gold));
    border-radius: 2px;
    transform: scale(0);
    transition: transform .2s cubic-bezier(.2,1.4,.4,1);
}
.auth-check input:checked + .auth-check-mark {
    border-color: var(--auth-gold);
    box-shadow: 0 0 0 4px rgba(205,185,152,0.12);
}
.auth-check input:checked + .auth-check-mark::after { transform: scale(1); }

.auth-link {
    color: var(--auth-gold);
    text-decoration: none;
    position: relative;
    transition: color .2s;
}
.auth-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--auth-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.auth-link:hover { color: var(--auth-gold-soft); }
.auth-link:hover::after { transform: scaleX(1); }

.auth-btn {
    position: relative;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a1410;
    cursor: pointer;
    background: linear-gradient(135deg, var(--auth-gold-soft) 0%, var(--auth-gold) 50%, var(--auth-gold-deep) 100%);
    box-shadow:
        0 12px 30px -8px rgba(205,185,152,0.5),
        inset 0 1px 0 rgba(255,255,255,0.45);
    overflow: hidden;
    transition: transform .2s, box-shadow .25s;
}
.auth-btn::before {
    content: '';
    position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left .9s ease;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(205,185,152,0.65), inset 0 1px 0 rgba(255,255,255,0.55); }
.auth-btn:hover::before { left: 120%; }
.auth-btn:active { transform: translateY(0); }

.auth-btn-ghost {
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 0.85rem 1rem;
    border: 1px solid var(--auth-glass-border);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--auth-gold);
    background: rgba(205,185,152,0.05);
    text-decoration: none;
    transition: all .25s;
}
.auth-btn-ghost:hover {
    background: rgba(205,185,152,0.12);
    border-color: var(--auth-gold);
    color: var(--auth-gold-soft);
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--auth-text-dim);
    font-size: 0.875rem;
}
.auth-footer p { margin: 0 0 0.75rem; }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--auth-text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color .2s;
}
.auth-back:hover { color: var(--auth-gold); text-decoration: none; }

.auth-alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    border: 1px solid;
    backdrop-filter: blur(10px);
}
.auth-alert.success {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.35);
    color: #b9efc2;
}
.auth-alert.danger {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.35);
    color: #ffc3c3;
}

.auth-shell .alert {
    border-radius: 12px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}
.auth-shell .alert-success {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.35);
    color: #b9efc2;
}
.auth-shell .alert-danger {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.35);
    color: #ffc3c3;
}

.auth-recaptcha {
    margin: 1.25rem 0;
    display: flex;
    justify-content: center;
    transform: scale(0.92);
    transform-origin: center;
}

@media (max-width: 480px) {
    .auth-stage { padding: 1.5rem 0.75rem; }
    .auth-card { padding: 2rem 1.4rem; border-radius: 18px; }
    .auth-brand img { max-width: 160px; }
    .auth-title { font-size: 1.55rem; }
}
