:root {
    --az-bg: #05110f;
    --az-bg-deep: #020807;
    --az-panel: rgba(12, 29, 27, .82);
    --az-panel-2: rgba(8, 20, 19, .92);
    --az-border: rgba(144, 204, 185, .18);
    --az-border-strong: rgba(144, 204, 185, .28);
    --az-text: #f4f8f7;
    --az-muted: #a9b6b2;
    --az-green: #18d46f;
    --az-green-dark: #089d50;
    --az-green-soft: rgba(24, 212, 111, .12);
    --az-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.az-login-page {
    margin: 0;
    min-height: 100vh;
    color: var(--az-text);
    background:
        radial-gradient(circle at 69% 20%, rgba(9, 117, 69, .18), transparent 30%),
        radial-gradient(circle at 35% 54%, rgba(0, 189, 95, .10), transparent 28%),
        linear-gradient(115deg, var(--az-bg-deep) 0%, var(--az-bg) 48%, #071714 100%);
    overflow-x: hidden;
}

body.az-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image: radial-gradient(rgba(37, 217, 125, .25) .8px, transparent .8px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to left, #000 0, transparent 42%);
}

.az-login-shell {
    width: min(1480px, calc(100% - 80px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, .82fr);
    align-items: center;
    gap: clamp(36px, 4.6vw, 82px);
    padding: 34px 0 22px;
}

.az-login-showcase { min-width: 0; }

.az-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(28px, 4.2vh, 56px);
}

.az-login-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 18px 18px 18px 6px;
    border: 3px solid var(--az-green);
    color: var(--az-green);
    font-size: 24px;
    box-shadow: 0 0 34px rgba(24, 212, 111, .17);
}

.az-login-brand-name {
    font-size: clamp(26px, 1.7vw, 34px);
    font-weight: 800;
    letter-spacing: -1.6px;
}

.az-login-brand-name strong { color: var(--az-green); }

.az-login-showcase-content {
    display: grid;
    grid-template-columns: minmax(340px, .82fr) minmax(300px, 1fr);
    gap: clamp(20px, 2.4vw, 40px);
    align-items: center;
}

.az-login-copy h1 {
    margin: 0;
    font-size: clamp(40px, 3.25vw, 60px);
    line-height: 1.04;
    letter-spacing: -2.2px;
    font-weight: 800;
}

.az-login-copy h1 span { color: var(--az-green); }

.az-login-lead {
    margin: 22px 0 22px;
    color: #c8d0ce;
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.55;
}

.az-login-benefits { display: grid; gap: 8px; }

.az-benefit {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 13px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.az-benefit:last-child { border-bottom: 0; }

.az-benefit-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--az-green);
    border: 1px solid rgba(24, 212, 111, .22);
    border-radius: 13px;
    background: rgba(24, 212, 111, .06);
}

.az-benefit strong,
.az-benefit span { display: block; }

.az-benefit strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.az-benefit span {
    color: var(--az-muted);
    font-size: 13px;
    line-height: 1.4;
}

.az-login-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.az-orbit {
    position: absolute;
    border: 1px solid rgba(24, 212, 111, .18);
    border-radius: 50%;
}

.az-orbit-1 { width: 310px; height: 310px; }
.az-orbit-2 { width: 390px; height: 390px; opacity: .6; }

.az-orbit-dot {
    position: absolute;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(24, 212, 111, .25);
    background: #08201a;
    color: var(--az-green);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.az-dot-1 { top: 16%; left: 10%; }
.az-dot-2 { top: 8%; right: 18%; }
.az-dot-3 { top: 36%; right: 2%; }

.az-robot-placeholder {
    position: relative;
    z-index: 3;
    width: min(255px, 80%);
    aspect-ratio: .84;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .36));
}

.az-robot-head {
    position: relative;
    z-index: 2;
    width: 82%;
    aspect-ratio: 1.3;
    border-radius: 46% 46% 40% 40%;
    background: linear-gradient(145deg, #f6f6f2, #aebcb6 65%, #81918b);
    border: 8px solid #e5ebe8;
    box-shadow: inset 0 -10px 24px rgba(0, 0, 0, .18), 0 0 50px rgba(24, 212, 111, .17);
}

.az-robot-head::before {
    content: "";
    position: absolute;
    inset: 14% 9% 15%;
    border-radius: 42%;
    background: linear-gradient(145deg, #07110f, #0b1916);
    box-shadow: inset 0 0 26px #000;
}

.az-eye {
    position: absolute;
    z-index: 3;
    top: 44%;
    width: 28px;
    height: 17px;
    border-top: 5px solid var(--az-green);
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(24, 212, 111, .65));
}

.az-eye-left { left: 30%; }
.az-eye-right { right: 30%; }

.az-mouth {
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 20px;
    left: calc(50% - 22px);
    top: 62%;
    border-bottom: 5px solid var(--az-green);
    border-radius: 0 0 50% 50%;
}

.az-robot-body {
    width: 59%;
    height: 138px;
    margin-top: -7px;
    display: grid;
    place-items: center;
    color: var(--az-green);
    font-size: 54px;
    font-weight: 900;
    border-radius: 38% 38% 30% 30%;
    background: linear-gradient(145deg, #f1f4f1, #9aaba5);
    box-shadow: inset 0 -10px 28px rgba(0, 0, 0, .16);
}

.az-security-mini {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86%);
    margin: auto;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(24, 212, 111, .20);
    background: rgba(7, 29, 24, .82);
    backdrop-filter: blur(14px);
}

.az-security-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(24, 212, 111, .30);
}

.az-security-mini strong,
.az-security-mini span { display: block; }
.az-security-mini strong { font-size: 13px; }
.az-security-mini span { margin-top: 3px; color: var(--az-muted); font-size: 13px; }

.az-login-access { min-width: 0; }

.az-login-card {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    padding: clamp(32px, 3vw, 46px);
    border: 1px solid var(--az-border-strong);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(18, 37, 35, .92), rgba(7, 18, 17, .94));
    box-shadow: var(--az-shadow);
    backdrop-filter: blur(18px);
}

.az-login-lock {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(24, 212, 111, .34);
    border-radius: 50%;
    background: var(--az-green-soft);
    color: var(--az-green);
    font-size: 22px;
}

.az-login-card-header { text-align: center; margin-bottom: 28px; }
.az-login-card-header h2 { margin: 0 0 8px; font-size: clamp(24px, 1.75vw, 30px); letter-spacing: -.7px; }
.az-login-card-header p { margin: 0; color: var(--az-muted); font-size: 15px; }

.az-login-form { display: grid; gap: 18px; }
.az-login-form .group-form { margin: 0; }
.az-login-form label { display: block; margin-bottom: 10px; font-weight: 600; color: #f4f7f6; }

.az-input-wrap { position: relative; }

.az-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 54px 0 48px;
    color: #f7faf9;
    background: rgba(3, 13, 12, .30);
    border: 1px solid var(--az-border);
    border-radius: 11px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.az-input-wrap input::placeholder { color: #86928f; }
.az-input-wrap input:focus { border-color: rgba(24, 212, 111, .64); box-shadow: 0 0 0 4px rgba(24, 212, 111, .08); background: rgba(3, 13, 12, .48); }

.az-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e9a97;
    pointer-events: none;
}

.az-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #a8b3b0;
    background: transparent;
    cursor: pointer;
}

.az-password-toggle:hover { color: var(--az-green); background: rgba(255,255,255,.04); }

.az-login-options {
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--az-muted);
    font-size: 14px;
}

.az-remember { display: inline-flex !important; align-items: center; gap: 9px; margin: 0 !important; font-weight: 400 !important; color: var(--az-muted) !important; cursor: pointer; }
.az-remember input { accent-color: var(--az-green); }
.az-lgpd { align-items: flex-start !important; line-height: 1.5; }
.az-lgpd input { margin-top: 3px; flex: 0 0 auto; }

.az-login-link { color: var(--az-green); text-decoration: none; }
.az-login-link:hover { text-decoration: underline; }

.az-login-submit {
    min-height: 52px;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 11px;
    border: 1px solid rgba(96, 255, 168, .52);
    background: linear-gradient(90deg, var(--az-green), var(--az-green-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(8, 157, 80, .18);
}

.az-login-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }

.az-login-divider { height: 1px; margin: 24px 0 18px; background: rgba(255,255,255,.08); }
.az-login-register { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--az-muted); font-size: 14px; }
.az-login-alert { margin-bottom: 22px; }

.az-login-footer {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #9eaaa7;
    font-size: 13px;
}

@media (max-width: 1480px) {
    .az-login-shell {
        width: min(1180px, calc(100% - 56px));
        grid-template-columns: minmax(0, 1fr) minmax(450px, .86fr);
        gap: 42px;
    }

    .az-login-showcase-content { grid-template-columns: minmax(300px, .96fr) minmax(230px, .72fr); }
    .az-login-visual { min-height: 360px; }
    .az-orbit-1 { width: 270px; height: 270px; }
    .az-orbit-2 { width: 340px; height: 340px; }
    .az-robot-placeholder { width: min(220px, 78%); }
    .az-security-mini { bottom: -8px; }
}

@media (max-width: 1180px) {
    .az-login-shell {
        grid-template-columns: 1fr 500px;
        gap: 32px;
    }

    .az-login-showcase-content { display: block; }
    .az-login-visual { display: none; }
    .az-login-copy h1 { font-size: clamp(38px, 4.6vw, 52px); }
}

@media (max-width: 920px) {
    body.az-login-page::before { display: none; }

    .az-login-shell {
        width: min(520px, calc(100% - 28px));
        min-height: calc(100vh - 50px);
        grid-template-columns: 1fr;
        align-items: center;
        padding: 24px 0;
    }

    .az-login-showcase { display: none; }
    .az-login-card { margin: 0 auto; }
    .az-login-footer { display: none; }
}

@media (max-width: 560px) {
    body.az-login-page { overflow-y: auto; }
    .az-login-shell { width: min(100% - 20px, 440px); min-height: 100vh; padding: 14px 0; }
    .desktop-only { display: none; }
    .az-login-card { padding: 24px 18px; border-radius: 18px; }
    .az-login-lock { width: 48px; height: 48px; margin-bottom: 16px; }
    .az-login-card-header { margin-bottom: 20px; }
    .az-login-card-header h2 { font-size: 23px; }
    .az-login-card-header p { font-size: 14px; }
    .az-login-form { gap: 15px; }
    .az-input-wrap input { height: 48px; }
    .az-login-options { align-items: flex-start; flex-direction: column; gap: 12px; }
    .az-login-register { flex-direction: column; gap: 6px; }
    .az-login-divider { margin: 18px 0 14px; }
}

@media (max-height: 800px) and (min-width: 921px) {
    .az-login-shell { padding-top: 18px; padding-bottom: 14px; }
    .az-login-brand { margin-bottom: 20px; }
    .az-login-visual { min-height: 320px; }
    .az-login-card { padding-top: 30px; padding-bottom: 30px; }
    .az-login-card-header { margin-bottom: 22px; }
    .az-login-form { gap: 15px; }
    .az-input-wrap input,
    .az-login-submit { height: 48px; min-height: 48px; }
}
