:root {
    --ink: #0b1b33;
    --ink-soft: #355372;
    --cyan: #06a8dc;
    --mint: #00c59a;
    --bg: #f4fbff;
    --card: #ffffff;
    --line: #d7e5f2;
    --danger: #b23333;
    --ok: #158a58;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 197, 154, 0.23), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(6, 168, 220, 0.24), transparent 42%),
        linear-gradient(130deg, #e9f7ff 0%, #f2fff9 47%, #f8fbff 100%);
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(280px, 1fr);
    gap: 1.5rem;
    padding: 1.6rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(11, 27, 51, 0.14);
    padding: 1.6rem;
}

.brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-link img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(6, 168, 220, 0.38);
    background: rgba(6, 168, 220, 0.09);
    border-radius: 999px;
    padding: 0.35rem 0.75rem 0.35rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b6ea8;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06a8dc;
    flex-shrink: 0;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 168, 220, 0.5); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 5px rgba(6, 168, 220, 0); }
}

.auth-card h1 {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    margin-bottom: 0.45rem;
}

.auth-card .subtitle {
    color: #4f6b86;
    margin-bottom: 1.2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-form label {
    font-size: 0.92rem;
    font-weight: 700;
}

.field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0.75rem 0.8rem;
    background: var(--card);
}

.field:focus-within {
    box-shadow: 0 0 0 3px rgba(11, 27, 51, 0.08);
}

.field i {
    color: #607a95;
}

.field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    color: var(--ink);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.2rem 0 0.25rem;
    gap: 1rem;
}

.form-row label {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    font-weight: 500;
    color: #4d6680;
}

.form-row a,
.link-inline {
    color: #0b6198;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-auth {
    margin-top: 0.25rem;
    border: none;
    border-radius: 13px;
    background: linear-gradient(95deg, #0f87be 0%, #00c59a 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 0.84rem 1rem;
    transition: transform 0.18s, box-shadow 0.18s;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 135, 190, 0.28);
}

.feedback {
    min-height: 1.2rem;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.feedback.error { color: var(--danger); }
.feedback.success { color: var(--ok); }

.card-footer {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 0.9rem;
    color: #5f7891;
    font-size: 0.9rem;
}

.recaptcha-info {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: #7a8fa1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.4;
    text-align: center;
}

.recaptcha-info i {
    color: #06a8dc;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.recaptcha-info a {
    color: #0b6198;
    text-decoration: underline;
    cursor: pointer;
}

.recaptcha-info a:hover {
    color: #06a8dc;
}

.recaptcha-wrapper {
    width: 100%;
    margin: 0.9rem 0 0.4rem;
    display: grid;
    place-items: center;
}

.recaptcha-wrapper .g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.auth-aside {
    border-radius: 24px;
    background: linear-gradient(145deg, #0c2342 0%, #153d69 45%, #0f5d81 100%);
    color: #f3f8ff;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}

.auth-aside h2 {
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
}

.auth-aside p {
    color: rgba(243, 248, 255, 0.87);
    max-width: 36ch;
}

.auth-points {
    display: grid;
    gap: 0.7rem;
}

.auth-points article {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.68rem 0.8rem;
}

/* Refinamentos visuais apenas da pagina de login */
body.login-page {
    font-family: "Manrope", sans-serif;
}

body.login-page .auth-layout {
    width: min(1180px, calc(100vw - clamp(1rem, 6vw, 4rem)));
    margin: 0 auto;
    align-items: center;
    grid-template-columns: minmax(0, clamp(310px, 44vw, 520px)) minmax(0, 1fr);
    padding: clamp(0.8rem, 1.8vh, 1.35rem) clamp(0.8rem, 2.4vw, 1.9rem);
    gap: clamp(0.85rem, 1.8vw, 1.15rem);
}

body.login-page .auth-card,
body.login-page .auth-aside {
    border-radius: clamp(18px, 2.3vw, 24px);
    padding: clamp(1rem, 1.9vw, 1.25rem) clamp(1rem, 2vw, 1.3rem);
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 220ms ease;
}

body.login-page .auth-card::before,
body.login-page .auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 12%, rgba(164, 235, 255, 0.22), rgba(164, 235, 255, 0) 48%);
    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
}

body.login-page .auth-card:hover,
body.login-page .auth-aside:hover {
    transform: translateY(-1px);
}

body.login-page .auth-card:hover {
    box-shadow: 0 14px 28px rgba(7, 30, 56, 0.15);
}

body.login-page .auth-aside:hover {
    box-shadow: 0 16px 30px rgba(4, 14, 34, 0.3);
}

body.login-page .auth-card:hover::before,
body.login-page .auth-aside:hover::before {
    opacity: 1;
}

body.login-page .brand-link strong,
body.login-page .badge,
body.login-page .auth-card h1,
body.login-page .auth-aside h2 {
    font-family: "Space Grotesk", sans-serif;
}

body.login-page .aside-logo-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.login-page .aside-logo-wrap img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

body.login-page .auth-aside {
    gap: 0.85rem;
}

body.login-page .auth-aside h2 {
    font-size: clamp(1.2rem, 1.9vw, 1.6rem);
}

body.login-page .auth-aside p {
    font-size: 0.95rem;
}

body.login-page .cloud-visual {
    margin: 0.35rem 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(157, 232, 255, 0.06));
    min-height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(3, 12, 29, 0.22);
}

body.login-page .cloud-visual i {
    font-size: clamp(2.7rem, 5.5vw, 4.3rem);
    color: rgba(182, 240, 255, 0.88);
    text-shadow: 0 0 28px rgba(43, 199, 255, 0.35);
    z-index: 2;
}

body.login-page .cloud-dot {
    position: absolute;
    border-radius: 999px;
    background: rgba(194, 242, 255, 0.42);
    filter: blur(0.2px);
}

body.login-page .cloud-dot-1 {
    width: 58px;
    height: 58px;
    top: 26px;
    left: 26px;
}

body.login-page .cloud-dot-2 {
    width: 36px;
    height: 36px;
    right: 40px;
    top: 34px;
}

body.login-page .cloud-dot-3 {
    width: 24px;
    height: 24px;
    right: 70px;
    bottom: 26px;
}

body.login-page .auth-points {
    gap: 0.45rem;
}

body.login-page .auth-points article {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    padding: 0.58rem 0.7rem;
}

body.login-page .auth-points article i {
    color: #9ee7ff;
}

body.login-page .auth-card .subtitle {
    margin-bottom: 0.9rem;
}

body.login-page .auth-form {
    gap: 0.55rem;
}

body.login-page .card-footer {
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    font-size: 0.84rem;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
        padding: clamp(0.75rem, 3vw, 1rem);
    }

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

    body.login-page .auth-layout {
        width: min(100%, calc(100vw - clamp(0.6rem, 4vw, 1.2rem)));
        padding: clamp(0.65rem, 2.6vw, 0.95rem);
        gap: clamp(0.75rem, 2.8vw, 0.95rem);
    }

    body.login-page .auth-aside {
        min-height: auto;
        padding: clamp(0.9rem, 2.8vw, 1rem);
    }

    body.login-page .cloud-visual {
        min-height: 120px;
    }
}

@media (max-width: 420px) {
    .recaptcha-wrapper .g-recaptcha {
        transform: scale(0.92);
        transform-origin: center center;
    }
}
