:root {
    --auth-gold: #ffd600;
    --auth-gold-hover: #ffe13b;
    --auth-bg: #080909;
    --auth-surface: #111313;
    --auth-surface-soft: #171919;
    --auth-border: rgba(255, 255, 255, 0.1);
    --auth-text: #f7f7f2;
    --auth-muted: #9b9f9f;
}

body.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 214, 0, 0.1), transparent 27rem),
        radial-gradient(circle at 92% 82%, rgba(255, 214, 0, 0.05), transparent 24rem),
        var(--auth-bg);
    color: var(--auth-text);
}

.auth-page .navbar {
    margin-bottom: 0 !important;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--auth-border);
    background: rgba(8, 9, 9, 0.86) !important;
    backdrop-filter: blur(18px);
}

.auth-page .navbar-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.auth-page .navbar-brand .brand-text {
    color: #fff;
}

.auth-page .navbar-brand .brand-highlight {
    color: var(--auth-gold);
    font-weight: 600;
}

.auth-page .navbar-nav {
    align-items: center;
    gap: 0.75rem;
}

.auth-page .navbar-nav .nav-link {
    position: relative;
    margin: 0;
    padding: 0.55rem 0.85rem;
    color: #b6b9b9;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-page .navbar-nav .nav-link:hover,
.auth-page .navbar-nav .nav-link:focus {
    color: var(--auth-gold);
}

.auth-page .navbar-nav .nav-item:last-child .nav-link {
    padding: 0.62rem 1.1rem;
    border: 1px solid rgba(255, 214, 0, 0.5);
    border-radius: 999px;
    color: var(--auth-gold);
}

.auth-page .navbar-toggler {
    border-color: rgba(255, 214, 0, 0.35);
}

.auth-main {
    display: flex;
    min-height: calc(100vh - 73px);
    align-items: center;
    padding: 3rem 0;
}

.auth-container {
    max-width: 1120px;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(410px, 0.98fr);
    min-height: 640px;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background: var(--auth-surface);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 640px;
    padding: 3.25rem;
    isolation: isolate;
    background-image:
        linear-gradient(180deg, rgba(4, 5, 5, 0.06) 16%, rgba(4, 5, 5, 0.25) 48%, rgba(4, 5, 5, 0.96) 100%),
        linear-gradient(90deg, rgba(4, 5, 5, 0.1), rgba(4, 5, 5, 0.42)),
        url('../img/Porche.jpg');
    background-position: center 63%;
    background-size: cover;
}

.auth-visual::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-right: 1px solid var(--auth-border);
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.13), transparent 38%);
    content: '';
}

.auth-visual-content {
    max-width: 31rem;
}

.auth-kicker,
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--auth-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-kicker::before,
.auth-eyebrow::before {
    width: 1.6rem;
    height: 2px;
    margin-right: 0.65rem;
    background: currentColor;
    content: '';
}

.auth-visual h2 {
    margin: 1rem 0 0.85rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.auth-visual p {
    max-width: 27rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.83rem;
    font-weight: 600;
}

.auth-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-benefits i {
    color: var(--auth-gold);
    font-size: 1rem;
}

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.auth-heading {
    margin-bottom: 2rem;
}

.auth-heading h1 {
    margin: 0.7rem 0 0.55rem;
    color: var(--auth-text);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 91, 91, 0.28);
    background: rgba(255, 91, 91, 0.1);
    color: #ffb3b3;
}

.auth-alert > i {
    margin-top: 0.1rem;
}

.auth-form {
    display: grid;
    gap: 1.35rem;
}

.auth-field .form-label,
.auth-label-row .form-label {
    margin-bottom: 0.55rem;
    color: #e8e9e6;
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-label-row a {
    margin-bottom: 0.55rem;
    color: var(--auth-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #777c7b;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.auth-input-wrap .form-control {
    min-height: 54px;
    padding: 0.8rem 3rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: var(--auth-surface-soft);
    color: var(--auth-text);
    font-size: 0.92rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-wrap .form-control::placeholder {
    color: #666b6a;
}

.auth-input-wrap .form-control:focus {
    border-color: rgba(255, 214, 0, 0.7);
    background: #1a1c1c;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.08);
}

.auth-input-wrap:focus-within > i {
    color: var(--auth-gold);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #858a89;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--auth-gold);
}

.auth-submit {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
    border: 1px solid var(--auth-gold);
    border-radius: 12px;
    background: var(--auth-gold);
    color: #111;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    box-shadow: 0 12px 30px rgba(255, 214, 0, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    border-color: var(--auth-gold-hover);
    background: var(--auth-gold-hover);
    color: #050505;
    box-shadow: 0 15px 34px rgba(255, 214, 0, 0.22);
    transform: translateY(-2px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.65rem 0 1.1rem;
    color: #666b6a;
    font-size: 0.75rem;
    text-transform: uppercase;
}

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

.auth-register {
    margin: 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: 0.86rem;
}

.auth-register a {
    margin-left: 0.25rem;
    color: var(--auth-gold);
    font-weight: 800;
    text-decoration: none;
}

.auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.65rem;
    color: #707574;
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
}

.auth-security i {
    color: #777c7b;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.auth-back-link:hover,
.auth-back-link:focus {
    color: var(--auth-gold);
    transform: translateX(-3px);
}

.auth-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-state-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 1.5rem;
    place-items: center;
    border: 1px solid rgba(255, 214, 0, 0.28);
    border-radius: 24px;
    background: rgba(255, 214, 0, 0.1);
    color: var(--auth-gold);
    font-size: 2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.auth-state .auth-eyebrow::before {
    display: none;
}

.auth-state h1 {
    margin: 0.85rem 0 0.75rem;
    color: var(--auth-text);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 750;
    letter-spacing: -0.045em;
}

.auth-state > p {
    max-width: 28rem;
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.65;
}

.auth-state-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    margin: 1.75rem 0;
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: var(--auth-surface-soft);
    color: #a9adac;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: left;
}

.auth-state-note i {
    margin-top: 0.08rem;
    color: var(--auth-gold);
}

.auth-state .auth-submit {
    width: 100%;
    text-decoration: none;
}

/* Cadastro: composição própria, sem repetir o card com imagem da tela de login. */
.auth-register-page {
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 214, 0, 0.15), transparent 28rem),
        radial-gradient(circle at 85% 8%, rgba(255, 214, 0, 0.06), transparent 25rem),
        #090a0a;
}

.auth-register-main {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.auth-register-container {
    max-width: 1060px;
}

.auth-register-card {
    display: grid;
    grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background: #101212;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.auth-register-intro {
    position: relative;
    display: flex;
    min-height: 670px;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.6rem);
    background:
        linear-gradient(155deg, rgba(255, 214, 0, 0.12), transparent 48%),
        linear-gradient(180deg, #1b1d1c 0%, #101111 72%);
}

.auth-register-intro::after {
    position: absolute;
    right: -7rem;
    bottom: -8rem;
    width: 20rem;
    height: 20rem;
    border: 1px solid rgba(255, 214, 0, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(255, 214, 0, 0.025), 0 0 0 6rem rgba(255, 214, 0, 0.02);
    content: '';
}

.auth-register-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.75;
}

.auth-register-orb-one {
    top: 5.5rem;
    right: -2.2rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(255, 214, 0, 0.32);
}

.auth-register-orb-two {
    top: 8rem;
    right: 2.3rem;
    width: 1rem;
    height: 1rem;
    background: var(--auth-gold);
    box-shadow: 0 0 30px rgba(255, 214, 0, 0.8);
}

.auth-register-intro > *:not(.auth-register-orb) {
    position: relative;
    z-index: 1;
}

.auth-register-intro h1 {
    max-width: 21rem;
    margin: 1rem 0;
    color: #fff;
    font-size: clamp(2.25rem, 3.4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.auth-register-intro > p {
    max-width: 24rem;
    margin: 0;
    color: #b1b5b4;
    font-size: 0.96rem;
    line-height: 1.7;
}

.auth-register-benefits {
    display: grid;
    gap: 1.15rem;
    margin-top: 2.5rem;
}

.auth-register-benefits > div {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.auth-register-benefit-icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 214, 0, 0.22);
    border-radius: 0.8rem;
    background: rgba(255, 214, 0, 0.08);
    color: var(--auth-gold);
}

.auth-register-benefits strong,
.auth-register-benefits small {
    display: block;
}

.auth-register-benefits strong {
    color: #e9ebe8;
    font-size: 0.83rem;
}

.auth-register-benefits small {
    margin-top: 0.15rem;
    color: #858b89;
    font-size: 0.72rem;
}

.auth-register-signature {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--auth-gold);
    font-size: 0.79rem;
    font-style: italic;
    font-weight: 700;
}

.auth-register-signature i {
    font-size: 1.4rem;
}

.auth-register-form-area {
    padding: clamp(2rem, 5vw, 4.2rem);
}

.auth-register-form-area .auth-heading {
    margin-bottom: 1.75rem;
}

.auth-register-form-area .auth-heading h2 {
    margin: 0.65rem 0 0.4rem;
    color: var(--auth-text);
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 750;
    letter-spacing: -0.05em;
}

.auth-register-form {
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.auth-register-form .auth-field .form-label span {
    color: var(--auth-gold);
}

.auth-register-form .auth-field .form-label small {
    color: #777d7b;
    font-size: 0.72rem;
    font-weight: 500;
}

.auth-register-form .auth-input-wrap .form-control {
    min-height: 50px;
}

.auth-register-passwords {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-register-submit {
    margin-top: 0.4rem;
}

.auth-register-login {
    margin: 1.35rem 0 0;
    color: var(--auth-muted);
    font-size: 0.84rem;
    text-align: center;
}

.auth-register-login a {
    color: var(--auth-gold);
    font-weight: 800;
    text-decoration: none;
}

.auth-register-success {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(97, 224, 153, 0.24);
    background: rgba(97, 224, 153, 0.1);
    color: #b5f1ca;
    font-size: 0.82rem;
}

.auth-register-success i {
    color: #6ee7a0;
}

@media (max-width: 991.98px) {
    .auth-main {
        align-items: flex-start;
        padding: 2rem 0;
    }

    .auth-card {
        grid-template-columns: 1fr;
        max-width: 680px;
        min-height: 0;
        margin: 0 auto;
    }

    .auth-visual {
        min-height: 300px;
        padding: 2rem;
        background-position: center 58%;
    }

    .auth-visual h2 {
        max-width: 30rem;
        font-size: 2.25rem;
    }

    .auth-content {
        padding: 2.75rem;
    }

    .auth-register-main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .auth-register-card {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }

    .auth-register-intro {
        min-height: 0;
        padding: 2.5rem 2.75rem;
    }

    .auth-register-intro h1 {
        max-width: 31rem;
        font-size: 2.45rem;
    }

    .auth-register-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
        margin-top: 1.8rem;
    }

    .auth-register-benefits > div {
        align-items: flex-start;
    }

    .auth-register-signature {
        display: none;
    }

    .auth-register-form-area {
        padding: 2.75rem;
    }
}

@media (max-width: 575.98px) {
    .auth-page .navbar {
        padding: 0.8rem 0;
    }

    .auth-main {
        min-height: calc(100vh - 62px);
        padding: 1rem 0;
    }

    .auth-container {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-visual {
        min-height: 210px;
        padding: 1.35rem;
    }

    .auth-visual h2 {
        margin-top: 0.65rem;
        font-size: 1.75rem;
    }

    .auth-visual p,
    .auth-benefits {
        display: none;
    }

    .auth-content {
        padding: 2rem 1.35rem;
    }

    .auth-heading {
        margin-bottom: 1.5rem;
    }

    .auth-heading h1 {
        font-size: 2rem;
    }

    .auth-register-main {
        padding: 1rem 0;
    }

    .auth-register-card {
        border-radius: 20px;
    }

    .auth-register-intro {
        min-height: 0;
        padding: 1.75rem 1.35rem;
    }

    .auth-register-intro h1 {
        max-width: 18rem;
        margin: 0.65rem 0;
        font-size: 1.85rem;
    }

    .auth-register-intro > p,
    .auth-register-benefits {
        display: none;
    }

    .auth-register-form-area {
        padding: 2rem 1.35rem;
    }

    .auth-register-passwords {
        grid-template-columns: 1fr;
    }
}
