@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
    --auth-blue: #1438c8;
    --auth-blue-strong: #002dff;
    --auth-blue-soft: #eef4ff;
    --auth-indigo: #314ecf;
    --auth-purple: #6a1b9a;
    --auth-pink: #e91e63;
    --auth-cyan: #4ac8ff;
    --auth-gold: #ffd467;
    --auth-text: #24304b;
    --auth-text-soft: #5d6982;
    --auth-border: rgba(20, 56, 200, 0.12);
    --auth-shadow: 0 24px 70px rgba(28, 56, 130, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 212, 103, 0.34), transparent 18%),
        radial-gradient(circle at 85% 12%, rgba(74, 200, 255, 0.22), transparent 16%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 52%, #f9fbff 100%);
    position: relative;
    overflow-x: hidden;
}

body.auth-page::before,
body.auth-page::after {
    content: '';
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

body.auth-page::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -110px;
    background: radial-gradient(circle, rgba(0, 45, 255, 0.14) 0%, rgba(0, 45, 255, 0) 72%);
}

body.auth-page::after {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.12) 0%, rgba(233, 30, 99, 0) 74%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-stage {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 32px;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.auth-page-register .auth-stage {
    grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
}

.auth-brand-panel,
.auth-form-panel {
    position: relative;
    min-width: 0;
}

.auth-brand-panel {
    padding: 34px;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.28), transparent 16%),
        radial-gradient(circle at 86% 14%, rgba(255, 212, 103, 0.24), transparent 14%),
        linear-gradient(145deg, #17327a 0%, #2446b9 38%, #5d4ed8 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-page-register .auth-brand-panel {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.26), transparent 16%),
        radial-gradient(circle at 84% 18%, rgba(74, 200, 255, 0.26), transparent 14%),
        linear-gradient(145deg, #17327a 0%, #2145c8 34%, #d83a86 100%);
}

.auth-home-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.auth-home-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.auth-brand-copy {
    max-width: 520px;
}

.auth-kicker,
.auth-form-kicker,
.auth-poster-label,
.auth-mini-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-kicker,
.auth-poster-label {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.auth-form-kicker,
.auth-mini-label {
    background: var(--auth-blue-soft);
    color: var(--auth-blue);
}

.auth-logo {
    display: block;
    width: min(220px, 62%);
    margin: 16px 0 18px;
}

.auth-brand-title,
.auth-form-title {
    margin: 0;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.auth-brand-title {
    font-size: clamp(2.35rem, 4.4vw, 4.4rem);
    line-height: 0.96;
}

.auth-brand-text {
    margin: 16px 0 0;
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.88);
}

.auth-brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-brand-list {
    display: grid;
    gap: 12px;
}

.auth-brand-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand-list-item i {
    margin-top: 2px;
    color: var(--auth-gold);
}

.auth-brand-list-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.auth-brand-list-item span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-poster-card {
    margin-top: auto;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 34px rgba(11, 23, 78, 0.18);
}

.auth-poster-card img {
    width: 100%;
    display: block;
    border-radius: 18px;
}

.auth-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-mini-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-mini-card strong {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.auth-mini-card p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-form-panel {
    padding: 38px 40px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 251, 255, 0.98) 100%);
}

.auth-form-inner {
    max-width: 560px;
    margin: 0 auto;
}

.auth-form-head {
    margin-bottom: 24px;
}

.auth-form-title {
    margin-top: 14px;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1;
    color: #112659;
}

.auth-form-text {
    margin: 12px 0 0;
    color: var(--auth-text-soft);
    line-height: 1.68;
}

.feedback-message {
    border-radius: 18px;
    padding: 15px 16px;
    margin: 0 0 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.feedback-message.erro {
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.24);
    color: #a91755;
}

.feedback-message.sucesso {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.22);
    color: #0b7a36;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a77e0;
    font-size: 0.95rem;
    pointer-events: none;
}

.auth-input,
.auth-select {
    width: 100%;
    min-height: 56px;
    padding: 0 16px 0 48px;
    border-radius: 16px;
    border: 1px solid var(--auth-border);
    background: #f8fbff;
    color: var(--auth-text);
    font-size: 0.98rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.auth-input::placeholder {
    color: #95a0b5;
}

.auth-input:focus,
.auth-select:focus {
    background: #ffffff;
    border-color: rgba(0, 45, 255, 0.24);
    box-shadow: 0 0 0 4px rgba(0, 45, 255, 0.08);
}

.auth-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 46px;
    background-image: linear-gradient(45deg, transparent 50%, #3757d2 50%), linear-gradient(135deg, #3757d2 50%, transparent 50%);
    background-position: calc(100% - 21px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.input-wrapper.has-action .auth-input {
    padding-right: 52px;
}

.auth-field-action {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5d6982;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-field-action:hover {
    background: rgba(0, 45, 255, 0.06);
    color: var(--auth-blue);
}

.auth-helper {
    margin: 8px 0 0;
    color: #76819a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.auth-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--auth-blue-strong), var(--auth-purple));
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 45, 255, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 45, 255, 0.28);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.auth-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-blue);
    text-decoration: none;
    font-weight: 700;
}

.auth-text-link:hover {
    color: var(--auth-purple);
}

.auth-text-link.is-muted {
    color: #6b7894;
}

.auth-text-link.is-muted:hover {
    color: var(--auth-blue);
}

.auth-form-footnote {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f7ff 0%, #eef4ff 100%);
    border: 1px solid rgba(20, 56, 200, 0.08);
    color: var(--auth-text-soft);
    line-height: 1.65;
    font-size: 0.9rem;
}

.auth-form-footnote strong {
    color: var(--auth-text);
}

@media (max-width: 1080px) {
    .auth-shell {
        padding: 20px;
        align-items: flex-start;
    }

    .auth-stage,
    .auth-page-register .auth-stage {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel,
    .auth-form-panel {
        padding: 28px;
    }

    .auth-poster-card {
        margin-top: 0;
    }

    .auth-brand-title {
        max-width: 700px;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        padding: 14px;
    }

    .auth-stage {
        border-radius: 26px;
    }

    .auth-brand-panel,
    .auth-form-panel {
        padding: 22px 20px;
    }

    .auth-brand-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .auth-form-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .auth-grid-two,
    .auth-mini-grid {
        grid-template-columns: 1fr;
    }

    .auth-links {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-text-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-brand-panel,
    .auth-form-panel {
        padding: 20px 16px;
    }

    .auth-stage {
        border-radius: 22px;
    }

    .auth-home-link,
    .auth-brand-pill,
    .auth-mini-label {
        font-size: 0.82rem;
    }

    .auth-input,
    .auth-select,
    .auth-submit {
        min-height: 54px;
        font-size: 0.95rem;
    }

    .auth-logo {
        width: min(190px, 70%);
    }

    .auth-brand-list-item,
    .auth-form-footnote,
    .auth-mini-card {
        padding: 14px;
    }
}
