/* Mailhook – bejelentkező oldal (redesign v2).
   Az admin globális CSS-e (Bootstrap 3, main.css) is betöltődik erre az
   oldalra, ezért az itteni szabályok szándékosan erősebbek (body-prefix / !important). */

:root,
[data-theme="light"] {
    --bg: #ffffff;
    --bg2: #f3f6fb;
    --card: #ffffff;
    --fg: #0f1a2e;
    --fg2: #3d4a60;
    --muted: #66728a;
    --line: rgba(15, 26, 46, .12);
    --line-strong: rgba(15, 26, 46, .28);
    --hover: rgba(15, 26, 46, .06);
    --accent: #2f6be3;
    --accent-hover: #2559c4;
    --accent-text: #1f4fb0;
    --accent-deep: #173a82;
    --accent-tint: #e6efff;
    --on-accent: #ffffff;
    --danger: #c0392b;
    --shadow: 0 1px 2px rgba(15, 26, 46, .05), 0 10px 30px rgba(15, 26, 46, .06);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0d1117;
    --bg2: #121820;
    --card: #171e29;
    --fg: #eef2f8;
    --fg2: #c3cbd8;
    --muted: #8d98ab;
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .28);
    --hover: rgba(255, 255, 255, .07);
    --accent: #5b8dee;
    --accent-hover: #3f78e6;
    --accent-text: #8fb3ff;
    --accent-deep: #d6e3ff;
    --accent-tint: #182747;
    --on-accent: #ffffff;
    --danger: #ff7b6b;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

html,
body.mhl-body {
    background: var(--bg) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
}

body.mhl-body {
    color: var(--fg);
    font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.mhl-body * {
    box-sizing: border-box;
}

body.mhl-body a {
    color: var(--accent-text);
    text-decoration: none;
}

body.mhl-body a:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.mhl-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(55% 70% at 85% 15%, var(--accent-tint) 0%, transparent 70%);
}

.mhl-header {
    border-bottom: 1px solid var(--line);
}

.mhl-header-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mhl-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--fg) !important;
    text-decoration: none !important;
    margin-right: auto;
}

.mhl-brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--accent);
    display: block;
    position: relative;
    flex: none;
}

.mhl-brand-mark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 8px;
    height: 11px;
    border: 2px solid var(--on-accent);
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

.mhl-brand-text {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .04em;
    line-height: 1;
}

.mhl-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px !important;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--fg) !important;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    text-shadow: none;
    transition: background .15s, color .15s;
}

.mhl-btn:hover,
.mhl-btn:focus {
    background: var(--hover);
    color: var(--fg) !important;
    outline: none;
}

.mhl-btn-primary,
body.mhl-body .sign-box .btn.mhl-btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--on-accent) !important;
    font-size: 16px;
    padding: 12px 22px;
    width: 100%;
    height: auto;
    margin: 0;
}

.mhl-btn-primary:hover,
.mhl-btn-primary:focus,
body.mhl-body .sign-box .btn.mhl-btn-primary:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: var(--on-accent) !important;
}

.mhl-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: center;
    width: 100%;
}

.mhl-intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mhl-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-text);
    font-weight: 500;
}

body.mhl-body .mhl-intro h1 {
    margin: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.015em;
    color: var(--fg);
}

body.mhl-body .mhl-intro p {
    margin: 0;
    font-size: 16px;
    color: var(--fg2);
    max-width: 44ch;
}

body.mhl-body .sign-box.mhl-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 440px;
    width: 100%;
    justify-self: end;
    margin: 0;
    color: var(--fg);
}

body.mhl-body .sign-box.mhl-card .sign-title {
    margin: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 22px;
    color: var(--fg);
    text-align: left;
    border: 0;
    padding: 0;
    letter-spacing: -.01em;
}

body.mhl-body .sign-box.mhl-card .form-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body.mhl-body .sign-box.mhl-card label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin: 0;
}

body.mhl-body .sign-box.mhl-card .form-control {
    display: block;
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--fg);
    box-shadow: none;
    transition: border-color .15s;
}

body.mhl-body .sign-box.mhl-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
    outline: none;
}

body.mhl-body .sign-box.mhl-card .error,
body.mhl-body .sign-box.mhl-card .mhl-error {
    font-size: 12px;
    color: var(--danger);
    text-align: left;
}

body.mhl-body .sign-box.mhl-card .mhl-error:empty {
    display: none;
}

.mhl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.mhl-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    max-width: 440px;
    width: 100%;
    justify-self: end;
    margin-top: -36px;
}

.mhl-meta a {
    color: var(--muted);
}

@media (max-width: 760px) {
    .mhl-main {
        padding: 40px 20px;
        gap: 32px;
    }

    body.mhl-body .sign-box.mhl-card,
    .mhl-meta {
        justify-self: stretch;
        max-width: none;
    }
}
