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

:root {
    --auth-page-1: #2f8cc8;
    --auth-page-2: #204f9f;
    --auth-page-3: #1b6ea9;
    --auth-surface: #ffffff;
    --auth-border: #e4eaf2;
    --auth-title: #1e2f46;
    --auth-text: #53657d;
    --auth-muted: #6a7f98;
    --auth-input-bg: #eef2f7;
    --auth-input-focus: #f9fcff;
    --auth-primary: #4cbe42;
    --auth-primary-dark: #3b9f34;
    --auth-secondary: #dce6f2;
    --auth-shadow-lg: 0 26px 56px rgba(10, 32, 69, 0.28);
    --auth-shadow-sm: 0 10px 24px rgba(16, 38, 62, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--auth-text);
}

.auth-bg {
    min-height: 100vh;
    background: #ffffff;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(1240px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 0;
    background: var(--auth-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--auth-shadow-lg);
}

.auth-shell-login {
    max-width: 980px;
}

.auth-shell-register {
    max-width: 1320px;
}

.auth-aside {
    position: relative;
    color: #4c6078;
    border-right: 1px solid var(--auth-border);
    background: radial-gradient(circle at 15% 20%, rgba(63, 112, 155, 0.08) 0, rgba(255, 255, 255, 0) 38%),
                radial-gradient(circle at 80% 82%, rgba(80, 130, 177, 0.08) 0, rgba(255, 255, 255, 0) 42%),
                linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.auth-aside::before,
.auth-aside::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(56, 112, 162, 0.09);
    pointer-events: none;
}

.auth-aside::before {
    width: 210px;
    height: 210px;
    top: -105px;
    right: -85px;
}

.auth-aside::after {
    width: 190px;
    height: 190px;
    left: -88px;
    bottom: -84px;
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    width: clamp(72px, 9vw, 110px);
    height: auto;
}

.brand-logo-aside {
    margin: 0 0 14px;
}

.auth-aside-title {
    margin: 0;
    color: #1e334a;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.28;
}

.auth-aside-text {
    margin: 11px 0 0;
    color: #5a6f86;
    font-size: 0.92rem;
    line-height: 1.58;
}

.auth-aside-list {
    margin: 16px 0 0;
    padding-left: 18px;
}

.auth-aside-list li {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #5a6f86;
}

.auth-aside-illustration {
    width: min(320px, 100%);
    margin: auto auto 0;
    display: block;
    filter: drop-shadow(0 16px 26px rgba(30, 64, 98, 0.2));
}

.auth-panel {
    padding: 46px 44px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.auth-panel-login {
    max-width: 620px;
}

.auth-panel-wide {
    width: 100%;
}

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

.auth-login-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #1f628d;
    border: 1px solid rgba(44, 117, 167, 0.3);
    background: rgba(69, 149, 203, 0.11);
}

.auth-title {
    margin: 0;
    color: var(--auth-title);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.36rem, 2.2vw, 1.72rem);
    font-weight: 700;
    line-height: 1.22;
}

.auth-subtitle {
    margin: 9px 0 0;
    max-width: 780px;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-login-badges {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.auth-login-badge {
    border-radius: 999px;
    border: 1px solid #d5dfeb;
    background: #f6f9fd;
    color: #53657d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 0.77rem;
    font-weight: 600;
}

.auth-login-badge i {
    color: #1f70a6;
    font-size: 0.84rem;
}

.form-label {
    margin: 0 0 6px;
    color: #3d536f;
    font-size: 0.84rem;
    font-weight: 600;
}

.form-control {
    min-height: 50px;
    border-radius: 26px;
    border: 1px solid transparent;
    padding: 11px 18px;
    background: var(--auth-input-bg);
    color: #36506e;
    font-size: 0.92rem;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control::placeholder {
    color: #95a7bb;
}

.form-control:focus {
    border-color: rgba(53, 141, 197, 0.55);
    background: var(--auth-input-focus);
    box-shadow: 0 0 0 0.2rem rgba(53, 141, 197, 0.17);
}

.auth-input-wrap {
    min-height: 50px;
    border-radius: 26px;
    border: 1px solid transparent;
    background: var(--auth-input-bg);
    display: flex;
    align-items: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input-wrap:focus-within {
    border-color: rgba(53, 141, 197, 0.55);
    background: var(--auth-input-focus);
    box-shadow: 0 0 0 0.2rem rgba(53, 141, 197, 0.17);
}

.auth-input-icon {
    width: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7891a9;
    font-size: 0.94rem;
}

.auth-input-control {
    border: 0;
    box-shadow: none;
    min-height: 48px;
    border-radius: 26px;
    padding: 11px 18px 11px 0;
    background: transparent;
    color: #36506e;
}

.auth-input-control:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.btn-auth {
    min-height: 50px;
    border-radius: 26px;
    border: 1px solid var(--auth-primary);
    background: linear-gradient(135deg, #61d84f 0%, var(--auth-primary) 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 10px 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn-auth:hover,
.btn-auth:focus {
    border-color: var(--auth-primary-dark);
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 159, 52, 0.25);
}

.btn-outline-auth {
    min-height: 50px;
    border-radius: 26px;
    border: 1px solid var(--auth-secondary);
    background: #ffffff;
    color: #4d6077;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    padding: 10px 18px;
}

.btn-outline-auth:hover,
.btn-outline-auth:focus {
    border-color: #c5d4e7;
    background: #f5f9ff;
    color: #2f4f72;
}

.auth-login-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.auth-login-primary,
.auth-login-secondary {
    flex: 1;
}

.alert {
    border: 0;
    border-radius: 14px;
    font-size: 0.87rem;
    box-shadow: var(--auth-shadow-sm);
}

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

.tipo-card {
    border: 1px solid #d8e3f1;
    border-radius: 18px;
    background: #ffffff;
    color: #3e5672;
    text-align: center;
    padding: 18px;
    min-height: 106px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tipo-card:hover {
    border-color: rgba(40, 117, 180, 0.45);
    transform: translateY(-1px);
}

.tipo-card.active {
    border-color: rgba(37, 124, 191, 0.6);
    background: #f4f9ff;
    box-shadow: 0 10px 20px rgba(33, 106, 159, 0.1);
}

.tipo-card span {
    font-size: 0.86rem;
    color: #6e8298;
}

.tipo-key {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.34rem;
    line-height: 1;
    letter-spacing: 0.35px;
}

.form-block {
    margin-top: 15px;
    border: 1px solid #e5ebf3;
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
}

.form-block-title {
    margin: 0 0 14px;
    color: #2d455f;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.pending-box {
    border: 1px solid rgba(226, 173, 16, 0.36);
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(180deg, #fff9e9 0%, #fff4d7 100%);
}

.pending-box .text-muted {
    color: #7a6740 !important;
}

.modal-dialog-pix {
    max-width: 780px;
}

.modal-pix {
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--auth-shadow-lg);
}

.modal-pix .modal-header {
    border-bottom: 1px solid var(--auth-border);
    padding: 16px 20px;
    background: #ffffff;
}

.modal-pix .modal-title {
    color: var(--auth-title);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
}

.modal-pix .modal-body {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.modal-pix .modal-footer {
    border-top: 1px solid var(--auth-border);
    background: #ffffff;
    padding: 12px 20px 16px;
}

.pix-loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #526a81;
}

.pix-layout {
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.pix-qr-card {
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--auth-shadow-sm);
    padding: 12px;
    text-align: center;
}

#pixModalBody .pix-image {
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d8e3f1;
    padding: 10px;
    background: #f8fbff;
}

.pix-value-box {
    border: 1px solid #d8e3f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5f9ff 0%, #edf4fd 100%);
    padding: 12px 14px;
    margin-bottom: 10px;
}

.pix-value-label {
    margin: 0;
    color: #60798f;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pix-value-amount {
    margin: 3px 0 0;
    color: #195484;
    font-size: 1.24rem;
    font-weight: 800;
}

.pix-expire {
    margin: 0 0 10px;
    color: #617b90;
    font-size: 0.84rem;
}

.pix-code-label {
    margin: 0 0 6px;
    color: #335169;
    font-size: 0.82rem;
    font-weight: 700;
}

#pixModalBody .pix-code {
    width: 100%;
    min-height: 114px;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid transparent;
    resize: vertical;
    font-size: 0.8rem;
    color: #3a5469;
    background: var(--auth-input-bg);
    font-family: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#pixModalBody .pix-code:focus {
    border-color: rgba(53, 141, 197, 0.55);
    background: var(--auth-input-focus);
    box-shadow: 0 0 0 0.2rem rgba(53, 141, 197, 0.17);
    outline: 0;
}

.pix-help-text {
    margin: 8px 0 0;
    color: #6f879b;
    font-size: 0.77rem;
}

.pix-copy-feedback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #1a709f;
    font-size: 0.81rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pix-copy-feedback.show {
    opacity: 1;
}

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

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

    .auth-aside {
        min-height: 250px;
    }

    .auth-aside-inner {
        padding: 26px 22px;
    }

    .auth-aside-illustration {
        width: min(240px, 65%);
        margin-top: 14px;
    }

    .auth-panel-login {
        max-width: 100%;
    }
}

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

    .auth-shell {
        border-radius: 18px;
    }

    .auth-panel {
        padding: 24px 16px;
    }

    .auth-aside-inner {
        padding: 22px 16px;
    }

    .auth-aside-title {
        font-size: 1.26rem;
    }

    .auth-aside-list {
        margin-top: 12px;
    }

    .tipo-selector {
        grid-template-columns: 1fr;
    }

    .form-block {
        padding: 15px;
    }

    .auth-login-actions {
        flex-direction: column;
    }

    .auth-login-primary,
    .auth-login-secondary {
        width: 100%;
    }

    .modal-dialog-pix {
        max-width: 96vw;
    }

    .pix-layout {
        grid-template-columns: 1fr;
    }
}
