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

:root {
    --bg-page: #f7f4ff;
    --bg-soft: #efe8ff;
    --card: rgba(255, 255, 255, 0.48);
    --card-strong: rgba(255, 255, 255, 0.68);

    --border: rgba(124, 58, 237, 0.14);
    --border-strong: rgba(124, 58, 237, 0.20);

    --text: #1d163b;
    --text-soft: rgba(29, 22, 59, 0.72);
    --text-muted: rgba(29, 22, 59, 0.52);

    --primary-1: #6d4cff;
    --primary-2: #7c3aed;
    --primary-3: #a78bfa;

    --danger: #d94b70;
    --shadow: 0 24px 60px rgba(92, 49, 235, 0.12);
}

body {
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(circle at 18% 15%, rgba(167, 139, 250, 0.18), transparent 24%),
        radial-gradient(circle at 84% 75%, rgba(109, 76, 255, 0.10), transparent 24%),
        rgb(247, 243, 249);
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.auth-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 32px);
}

.auth-shell {
    position: relative;
    width: min(1280px, 100%);
    min-height: 860px;
    height: auto;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.auth-panel-register {
    transform: translateX(0%);
    opacity: 1;
    z-index: 2;
}

.auth-panel-login {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.auth-shell.is-login .auth-panel-register {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.auth-shell.is-login .auth-panel-login {
    transform: translateX(0%);
    opacity: 1;
    z-index: 2;
}

.auth-shell.is-register .auth-panel-register {
    transform: translateX(0%);
    opacity: 1;
    z-index: 2;
}

.auth-shell.is-register .auth-panel-login {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.auth-visual,
.auth-form-area {
    height: 100%;
    min-width: 0;
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-panel-register .auth-visual {
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.10);
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.auth-visual-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4%;
    background-color: #9670f1;
}

.auth-register-visual-inner {
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 28px 26px;
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.16), rgba(255, 255, 255, 0.48));
}

.auth-visual img {
    width: 100%;
    max-width: 640px;
    max-height: 750px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(92, 49, 235, 0.16));
}

.auth-visual .auth-register-image {
    width: 100%;
    max-width: 380px;
    max-height: 300px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 auto;
}

.operational-profile-panel {
    width: min(100%, 520px);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 14px;
}

.operational-profile-header {
    text-align: center;
}

.operational-profile-header h2 {
    color: var(--text);
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 8px;
}

.operational-profile-header p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.4;
}

.operational-profile-cards {
    display: grid;
    gap: 10px;
}

.operational-profile-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.operational-profile-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 16px 34px rgba(92, 49, 235, 0.14);
}

.operational-profile-card.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
    color: #fff;
    box-shadow: 0 18px 38px rgba(109, 76, 255, 0.24);
}

.operational-profile-card.is-locked {
    cursor: pointer;
}

.operational-profile-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.operational-profile-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.10);
    color: var(--primary-2);
    font-size: 1rem;
}

.operational-profile-card.is-selected .operational-profile-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.operational-profile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.operational-profile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 82px;
    flex-wrap: wrap;
    font-weight: 800;
    font-size: 0.96rem;
}

.operational-profile-description {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.35;
}

.operational-profile-card.is-selected .operational-profile-description {
    color: rgba(255, 255, 255, 0.88);
}

.operational-profile-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
    color: var(--primary-2);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.operational-profile-card.is-selected .operational-profile-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.operational-profile-warning {
    color: #b42345;
    background: rgba(217, 75, 112, 0.08);
    border: 1px solid rgba(217, 75, 112, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.35;
}

.operational-profile-benefits {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 650;
}

.operational-profile-benefits[hidden] {
    display: none;
}

.operational-profile-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.operational-profile-benefits i {
    color: var(--primary-2);
}

.auth-profile-field-hidden,
.auth-form .form-group-full:has(.payment-methods) {
    display: none;
}

.auth-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 22px;
    overflow: hidden;
    min-width: 0;
}

.auth-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 0;
}

.auth-brand {
    margin-bottom: 18px;
}

.auth-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.auth-header {
    margin-bottom: 12px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-2);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.10);
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 2.4rem;
    line-height: 1.05;
    margin-bottom: 6px;
    color: var(--text);
}

.auth-header p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 500px;
}

.auth-form {
    width: 100%;
}

.form-grid {
    display: grid;
    gap: 10px;
}

.form-group,
.form-group-full {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(29, 22, 59, 0.48);
    opacity: 1;
    -webkit-text-fill-color: rgba(29, 22, 59, 0.48);
}

.form-group input:-webkit-autofill,
.form-group select:-webkit-autofill,
.form-group textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.96) inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(124, 58, 237, 0.34);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
    background: rgba(255, 255, 255, 0.96);
}

.form-group-checkbox {
    width: 100%;
    margin-top: -2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-checkbox > label {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.document-type-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
}

.radio-inline input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary-2);
    flex-shrink: 0;
}

.document-field-wrapper {
    width: 100%;
    min-height: 88px;
}

.campo-documento {
    width: 100%;
}

.campo-documento-oculto {
    display: none;
}

.campo-documento-visivel {
    display: block;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox-inline input {
    width: 18px !important;
    min-height: 18px !important;
    height: 18px !important;
    accent-color: var(--primary-2);
}

.field-error {
    margin-top: 8px;
    color: var(--danger);
    font-size: 0.9rem;
}

.form-alert {
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(217, 75, 112, 0.08);
    border: 1px solid rgba(217, 75, 112, 0.16);
    color: #b42345;
    font-size: 0.95rem;
}

.btn-auth {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.btn-auth:hover {
    transform: translateY(-1px);
}

.btn-primary-auth {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-1), var(--primary-3));
    box-shadow: 0 16px 30px rgba(109, 76, 255, 0.22);
}

.btn-primary-auth:hover {
    box-shadow: 0 20px 36px rgba(109, 76, 255, 0.28);
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.auth-links a,
.btn-auth-link {
    color: var(--primary-2);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: center;
    font-size: 0.98rem;
}

.auth-links a:hover,
.btn-auth-link:hover {
    color: var(--primary-1);
}


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

    .auth-shell {
        width: 100%;
        height: auto;
        min-height: auto;
        max-width: 760px;
    }

    .auth-panel {
        position: relative;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-panel-login,
    .auth-panel-register,
    .auth-shell.is-login .auth-panel-login,
    .auth-shell.is-login .auth-panel-register,
    .auth-shell.is-register .auth-panel-login,
    .auth-shell.is-register .auth-panel-register {
        transform: none;
        opacity: 1;
    }

    .auth-panel-login {
        display: none;
    }

    .auth-shell.is-login .auth-panel-register {
        display: none;
    }

    .auth-shell.is-login .auth-panel-login {
        display: grid;
    }

    .auth-shell.is-register .auth-panel-register {
        display: grid;
    }

    .auth-visual {
        min-height: 220px;
        order: -1;
    }

    .auth-visual::after {
        inset: 18px;
        border-radius: 22px;
    }

    .auth-visual img {
        max-height: 260px;
    }

    .auth-visual .auth-register-image {
        max-width: 320px;
        max-height: 180px;
    }

    .auth-register-visual-inner {
        padding: 24px 22px;
        gap: 16px;
    }

    .auth-form-area {
        overflow: visible;
        height: auto;
        padding: 32px 24px;
    }

    .auth-content {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 12px;
        align-items: stretch;
    }

    .auth-shell {
        border-radius: 22px;
        min-height: calc(100svh - 24px);
    }

    .auth-header h1 {
        font-size: 1.9rem;
    }

    .auth-header p {
        font-size: 0.92rem;
    }

    .auth-brand {
        margin-bottom: 12px;
    }

    .auth-logo {
        height: 30px;
    }

    .auth-visual {
        padding: 14px 14px 0;
        min-height: 132px;
    }

    .auth-visual::after {
        display: none;
    }

    .auth-visual-inner {
        min-height: 118px;
        border-radius: 18px;
    }

    .auth-register-visual-inner {
        min-height: auto;
        padding: 16px;
    }

    .auth-visual img {
        max-height: 128px;
        object-fit: contain;
    }

    .auth-visual .auth-register-image {
        max-width: 240px;
        max-height: 118px;
    }

    .operational-profile-panel {
        gap: 10px;
    }

    .operational-profile-header h2 {
        font-size: 1.35rem;
    }

    .operational-profile-header p {
        font-size: 0.9rem;
    }

    .operational-profile-card {
        grid-template-columns: 38px 1fr;
        min-height: 72px;
        padding: 12px;
        border-radius: 16px;
    }

    .operational-profile-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .operational-profile-title {
        padding-right: 74px;
        font-size: 0.92rem;
    }

    .operational-profile-description,
    .operational-profile-benefits,
    .operational-profile-warning {
        font-size: 0.82rem;
    }

    .auth-form-area {
        padding: 22px 16px;
        align-items: flex-start;
    }

    .auth-content {
        gap: 4px;
    }

    .form-grid {
        gap: 9px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        border-radius: 14px;
        font-size: 16px;
        padding: 11px 13px;
    }

    .btn-auth {
        min-height: 48px;
        border-radius: 14px;
    }

    .document-type-group {
        gap: 14px;
        flex-wrap: wrap;
    }

    .auth-links {
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .auth-page {
        padding: 0;
    }

    .auth-shell {
        min-height: 100svh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .auth-form-area {
        padding: 20px 14px 24px;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }
}
