@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg: #060816;
    --bg-secondary: #0d1326;

    --card: rgba(14, 19, 40, 0.74);
    --card-border: rgba(255, 255, 255, 0.08);

    --text: #f8fafc;
    --text-soft: #a8b1c7;

    --primary: #7c3aed;
    --primary-light: #9f67ff;
    --primary-dark: #5b21b6;

    --cyan: #22d3ee;
    --pink: #ec4899;

    --success: #16a34a;
    --danger: #dc2626;

    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;

    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 20px 45px rgba(124, 58, 237, 0.25);

    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background:
    linear-gradient(135deg, #030712 0%, #050816 45%, #020617 100%);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    position: relative;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

a {
    text-decoration: none;
}

.auth-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 14px;

    overflow: hidden;
}

.auth-bg {
    position: absolute;

    border-radius: 50%;

    filter: blur(110px);

    pointer-events: none;

    mix-blend-mode: screen;

    z-index: 1;
}

.auth-bg-one {
    width: 320px;
    height: 320px;
    background: rgba(124, 58, 237, 0.55);
    top: -60px;
    left: -80px;
}

.auth-bg-two {
    width: 380px;
    height: 380px;
    background: rgba(34, 211, 238, 0.28);
    bottom: -120px;
    right: -100px;
}

.auth-bg-three {
    width: 280px;
    height: 280px;
    background: rgba(236, 72, 153, 0.28);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-shell {
    width: 100%;
    max-width: 1180px;

    height: 760px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    background:
        linear-gradient(
            145deg,
            rgba(35, 18, 74, 0.96),
            rgba(16, 11, 36, 0.96)
        );

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: var(--radius-xl);

    backdrop-filter: blur(24px);

    overflow: hidden;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(124, 58, 237, 0.12);

    position: relative;
    z-index: 2;
}

.auth-brand {
    position: relative;

    padding: 28px 34px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-right: 1px solid rgba(255, 255, 255, 0.06);

    background:
        linear-gradient(145deg, rgba(124, 58, 237, 0.12), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.brand-logo img {
    width: 220px;
    max-width: 100%;
}

.brand-content {
    display: flex;
    flex-direction: column;
    gap: 20px;

    max-width: 620px;
}

.brand-kicker {
    width: fit-content;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(124, 58, 237, 0.18);

    border: 1px solid rgba(124, 58, 237, 0.28);

    color: #d7c3ff;

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-content h1 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: clamp(2.6rem, 4vw, 5rem);

    line-height: 1.02;
    font-weight: 700;

    letter-spacing: -0.05em;
}

.brand-content p {
    max-width: 520px;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.8;
}

.brand-preview {
    width: 100%;
    max-width: 520px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-md);
}

.preview-top {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 18px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-top span {
    width: 12px;
    height: 12px;

    border-radius: 50%;
}

.preview-top span:nth-child(1) {
    background: #ff5f57;
}

.preview-top span:nth-child(2) {
    background: #febc2e;
}

.preview-top span:nth-child(3) {
    background: #28c840;
}

.preview-body {
    padding: 28px;
}

.preview-body small {
    display: block;

    color: var(--text-soft);

    margin-bottom: 8px;
}

.preview-body strong {
    display: block;

    font-size: 1.8rem;

    font-family: 'Space Grotesk', sans-serif;

    margin-bottom: 24px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.preview-grid span {
    padding: 16px;

    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.04);

    font-size: 0.95rem;

    color: var(--text-soft);
}

.auth-card {
    padding: 24px 28px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}

.auth-form {
    min-width: 0;
}

.auth-tabs {
    display: flex;
    gap: 12px;

    margin-bottom: 32px;

    flex-wrap: wrap;
}

.auth-tab {
    padding: 14px 20px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid transparent;

    color: var(--text-soft);

    font-weight: 600;

    transition: var(--transition);
}

.auth-tab:hover {
    border-color: rgba(124, 58, 237, 0.25);

    color: var(--text);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: #fff;

    box-shadow: 0 18px 35px rgba(124, 58, 237, 0.35);
}

.auth-message {
    padding: 16px 18px;

    border-radius: var(--radius-md);

    margin-bottom: 26px;

    font-size: 0.96rem;
    line-height: 1.6;
}

.auth-message.success {
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #9cf0b7;
}

.auth-message.error {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #ffb4b4;
}

.auth-form {
    display: none;
    flex-direction: column;

    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.form-heading {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.form-heading h2 {
    font-size: 2rem;

    font-family: 'Space Grotesk', sans-serif;

    letter-spacing: -0.03em;
}

.form-heading p {
    color: var(--text-soft);

    line-height: 1.7;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-group span {
    color: #d6dcf1;

    font-size: 0.88rem;
    font-weight: 600;
}

.field-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--text);

    outline: none;

    transition: var(--transition);
}

.field-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field-group input:focus {
    border-color: rgba(124, 58, 237, 0.55);

    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 60px;
}

.toggle-password {
    position: absolute;

    top: 39px;
    right: 18px;

    color: var(--text-soft);

    font-size: 1.1rem;

    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--text);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: var(--text-soft);

    line-height: 1.6;

    font-size: 0.92rem;
}

.check-field input {
    width: 18px;
    height: 18px;

    margin-top: 2px;

    accent-color: var(--primary);
}

.check-field a {
    color: #c7b1ff;
}

.link-button {
    color: #d7c3ff;

    font-size: 0.92rem;
    font-weight: 600;
}

.link-button:hover {
    color: #fff;
}

.primary-button {
    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border-radius: var(--radius-md);

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: #fff;

    font-size: 1rem;
    font-weight: 700;

    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.35);

    transition: var(--transition);
}

.primary-button:hover {
    transform: translateY(-3px);

    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.primary-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-footer-text {
    text-align: center;

    color: var(--text-soft);

    line-height: 1.7;
}

.form-footer-text button {
    color: #d7c3ff;

    font-weight: 700;
}

.account-type {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.account-type label {
    position: relative;
}

.account-type input {
    position: absolute;
    opacity: 0;
}

.account-type span {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 20px;

    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.06);

    transition: var(--transition);
}

.account-type strong {
    font-size: 1rem;
}

.account-type small {
    color: var(--text-soft);

    line-height: 1.5;
}

.account-type input:checked + span {
    border-color: rgba(124, 58, 237, 0.55);

    background: rgba(124, 58, 237, 0.18);

    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.18);
}

.dynamic-note {
    padding: 18px;

    border-radius: var(--radius-md);

    background: rgba(34, 211, 238, 0.08);

    border: 1px solid rgba(34, 211, 238, 0.12);

    color: #b8f5ff;

    line-height: 1.7;

    font-size: 0.94rem;
}

.privacy-check {
    align-items: flex-start;
}

@media (max-width: 1200px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 768px) {

    .auth-page {
        padding: 0;
    }

    .auth-shell {
        width: 100%;
        min-height: 100vh;
        height: auto;

        max-width: 100%;

        display: flex;
        flex-direction: column;

        border-radius: 0;
    }

    /* REMOVE COMPLETAMENTE O LADO ESQUERDO */

    .auth-brand {
        display: flex;

        width: 100%;
        height: auto;

        padding: 18px 22px;

        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);

        background: transparent;
    }

    .brand-image-box {
        display: none !important;
    }

    .auth-brand {
    justify-content: center;
    align-items: center;
}

    .brand-header {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        margin-bottom: 0;
    }

    .brand-header .brand-logo img {
        width: 44px;
    }

    .brand-header h1 {
        font-size: 1.25rem;
    }

    /* LOGIN AGORA OCUPA TELA INTEIRA */

    .auth-card {
        width: 100%;
        height: 100%;

        padding: 24px;

        justify-content: center;
    }

    .auth-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .auth-tab {
        width: 100%;
    }

    .account-type {
        grid-template-columns: 1fr;
    }

    .form-heading h2 {
        font-size: 1.7rem;
    }

    .field-group input {
        height: 52px;
    }

    .primary-button {
        min-height: 54px;
    }

    #registerForm {
        max-height: 72vh;
    }

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

@media (max-width: 520px) {
    .auth-brand,
    .auth-card {
        padding: 22px;
    }

    .brand-content h1 {
        font-size: 2rem;
    }

    .form-heading h2 {
        font-size: 1.7rem;
    }

    .field-group input {
        height: 54px;
    }

    .primary-button {
        height: 56px;
    }

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

.brand-header {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 40px;
}

.brand-header .brand-logo img {
    width: 82px;
    height: auto;
}

.brand-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    color: var(--text);
    letter-spacing: -0.04em;
}

.brand-image-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-image-box img {
    width: 100%;
    max-width: 620px;

    display: block;

    margin: 0 auto;

    object-fit: contain;
}

#registerForm {
    max-height: 78vh;
    overflow-y: auto;

    padding-right: 10px;
}

/* Scroll customizado */

#registerForm::-webkit-scrollbar {
    width: 8px;
}

#registerForm::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

#registerForm::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.55);
    border-radius: 999px;
}

#registerForm::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.8);
}

#registerForm .primary-button {
    min-height: 60px;
    flex-shrink: 0;

    margin-top: 4px;
}

.account-type span {
    position: relative;
}

.account-check {
    position: absolute;

    top: 18px;
    right: 18px;

    font-size: 1.2rem;

    color: #ffffff;

    opacity: 0;
    transform: scale(0.7);

    transition: all 0.25s ease;
}

.account-type input:checked + span .account-check {
    opacity: 1;
    transform: scale(1);
}

/* Aurora Gradient Motion - Versão mais visível */

.auth-page {
    isolation: isolate;
}

.auth-bg {
    z-index: 1;
}

.auth-shell {
    z-index: 3;
}

.auth-bg-one {
    width: 620px;
    height: 620px;
    opacity: 1;
    background: rgba(124, 58, 237, 0.9);
    animation: auroraOne 6s ease-in-out infinite alternate;
}

.auth-bg-two {
    width: 680px;
    height: 680px;
    opacity: 0.9;
    background: rgba(34, 211, 238, 0.65);
    animation: auroraTwo 7s ease-in-out infinite alternate;
}

.auth-bg-three {
    width: 520px;
    height: 520px;
    opacity: 0.85;
    background: rgba(236, 72, 153, 0.7);
    animation: auroraThree 8s ease-in-out infinite alternate;
}

@keyframes auroraOne {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(120px, 80px, 0) scale(1.2);
    }
}

@keyframes auroraTwo {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-120px, -90px, 0) scale(1.18);
    }
}

@keyframes auroraThree {
    from {
        transform: translate3d(-50%, -50%, 0) scale(1);
    }

    to {
        transform: translate3d(calc(-50% + 90px), calc(-50% - 70px), 0) scale(1.16);
    }
}