:root {
    --h-mint: #00ad8b;
    --h-navy: #0f263e;
    --h-salmon: #fa8072;
    --h-white: #ffffff;
    --h-bg: #f8fafc;
    --h-border: #e2e8f0;
    --h-slate: #64748b;
    --h-shadow: 0 30px 80px rgba(15, 38, 62, 0.18);
    --h-radius: 32px;
    --h-radius-sm: 16px;
}

body.hl-webmail {
    font-family: "Poppins", sans-serif;
    background: var(--h-bg);
    color: var(--h-navy);
    margin: 0;
}

.hl-auth {
    min-height: 100vh;
    padding: clamp(24px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-auth-shell {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1fr);
    background: var(--h-white);
    border-radius: var(--h-radius);
    overflow: hidden;
    border: 1px solid var(--h-border);
    box-shadow: var(--h-shadow);
}

.hl-brand-panel {
    background: radial-gradient(circle at top, rgba(0, 173, 139, 0.18), transparent 55%),
        linear-gradient(160deg, #0f263e 0%, #0b1e33 100%);
    color: var(--h-white);
    padding: clamp(32px, 6vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hl-brand-panel::after {
    content: "";
    position: absolute;
    inset: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    pointer-events: none;
}

.hl-logo {
    width: clamp(180px, 20vw, 260px);
    margin-bottom: 30px;
}

.hl-brand-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    margin-bottom: 12px;
}

.hl-brand-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
    max-width: 320px;
}

.hl-auth-card {
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--h-white);
}

.hl-auth-header {
    margin-bottom: 28px;
}

.hl-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(0, 173, 139, 0.12);
    color: var(--h-mint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hl-auth-title {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--h-navy);
}

.hl-auth-subtitle {
    color: var(--h-slate);
    font-size: 15px;
    margin: 0;
}

.hl-auth .form-control {
    height: auto;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--h-border);
    font-size: 15px;
    color: var(--h-navy);
    background: #fff;
}

.hl-auth .form-control:focus {
    border-color: var(--h-mint);
    box-shadow: 0 0 0 3px rgba(0, 173, 139, 0.2);
}

.hl-auth .form-label {
    color: var(--h-slate);
    font-size: 13px;
    margin-top: 8px;
}

.hl-btn {
    background: var(--h-mint);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hl-btn:hover {
    background: #008f73;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 173, 139, 0.2);
    color: #fff;
}

.language-picker {
    margin-bottom: 20px;
}

.language-picker select,
.language-picker input,
.language-picker button {
    border-radius: 12px;
}

.hl-user-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 38, 62, 0.08);
    color: var(--h-navy);
    font-size: 14px;
    margin-bottom: 18px;
}

.hl-auth-footer {
    margin-top: 26px;
    font-size: 13px;
    color: var(--h-slate);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hl-auth-footer a {
    color: var(--h-navy);
    text-decoration: none;
}

.hl-auth-footer a:hover {
    color: var(--h-mint);
}

.error {
    margin-top: 12px;
    color: #b91c1c;
    font-size: 13px;
}

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

    .hl-brand-panel {
        padding: 32px;
        text-align: center;
        align-items: center;
    }

    .hl-brand-copy {
        max-width: 100%;
    }

    .hl-brand-panel::after {
        inset: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hl-btn {
        transition: none;
    }
}
