﻿/* Login page only (keep site.css global) */
:root {
    --mk-blue: #1e88e5;
    --mk-green: #22c55e;
    --mk-ink: #0b1220;
    --mk-card: rgba(8, 14, 24, .70);
    --mk-line: rgba(255,255,255,.10);
    --mk-text: rgba(255,255,255,.92);
    --mk-muted: rgba(255,255,255,.68);
    --mk-shadow: 0 22px 65px rgba(0,0,0,.45);
    --mk-radius: 22px;
    --mk-font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ✅ stop page scrolling */
html, body {
    height: 100%;
    overflow: hidden; /* ✅ stop page scroll (important) */
    background: #050914; /* ✅ remove white strip at right */
}

.auth-body {
    margin: 0;
    font-family: var(--mk-font);
    color: var(--mk-text);
    overflow: hidden; /* keep */
}

/* ✅ fix "100vh + padding" scrolling */
.auth-wrap {
    height: 100vh; /* ✅ stable desktop */
    box-sizing: border-box; /* ✅ padding included */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px; /* ✅ little smaller to avoid overflow */
    background-image: var(--auth-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}


.auth-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 600px at 15% 20%, rgba(34,197,94,.25), transparent 60%), radial-gradient(900px 600px at 85% 25%, rgba(30,136,229,.25), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.70));
}

.auth-main {
    position: relative;
    width: min(980px, 100%);
    display: flex;
    justify-content: center;
}

/* ✅ card fits screen. If content long -> internal scroll only */
.auth-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px); /* ✅ fits inside wrap */
    overflow: hidden; /* ✅ remove internal scrollbar */
    border-radius: var(--mk-radius);
    background: var(--mk-card);
    box-shadow: var(--mk-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--mk-line);
    position: relative;
}


    .auth-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, rgba(30,136,229,.85), rgba(34,197,94,.85));
        filter: blur(18px);
        opacity: .35;
        pointer-events: none;
    }

/* Top */
.auth-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 10px 18px;
    border-bottom: 1px solid var(--mk-line);
}

.cust-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cust-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.08);
}

.cust-label {
    font-size: 12px;
    color: var(--mk-muted);
    line-height: 1.1;
}

.cust-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Badge */
.app-badge {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--mk-text);
    font-weight: 700;
    font-size: 13px;
}

.app-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mk-blue), var(--mk-green));
}

/* ✅ brand center (for your new markup) */
.brand-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0;
}

.brand-logo {
    height: 40px; /* ✅ reduced (remove inline height="70px") */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
    opacity: .95;
}

/* Head */
.auth-head {
    position: relative;
    padding: 18px 22px 8px 22px;
}

    .auth-head h1 {
        margin: 0;
        font-size: 28px;
        letter-spacing: .2px;
    }

    .auth-head p {
        margin: 6px 0 0 0;
        color: var(--mk-muted);
        font-size: 14px;
    }

.auth-form {
    position: relative;
    padding: 8px 22px 22px 22px;
}

.auth-validation {
    margin: 8px 0 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 82, 82, .12);
    border: 1px solid rgba(255, 82, 82, .25);
    color: rgba(255,255,255,.92);
    font-size: 13px;
}

.f-label {
    display: block;
    margin: 10px 0 6px 0;
    font-size: 13px;
    color: var(--mk-muted);
}

.f-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
}

.f-ico {
    width: 22px;
    opacity: .85;
}

.f-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--mk-text);
    font-size: 15px;
}

    .f-input::placeholder {
        color: rgba(255,255,255,.40);
    }

.f-eye {
    border: none;
    background: transparent;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 16px;
}

.pwd-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.70);
}

.f-error {
    display: block;
    font-size: 12px;
    color: #ffb4b4;
    margin-top: 6px;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.chk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.78);
}

.link {
    color: #7dd3fc;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

.btn-primary {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    color: #06101a;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(30,136,229,1), rgba(34,197,94,1));
    box-shadow: 0 14px 35px rgba(0,0,0,.35);
}

.auth-links {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}

.help-box {
    margin-top: 14px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
}

    .help-box summary {
        cursor: pointer;
        font-weight: 800;
        color: rgba(255,255,255,.90);
    }

    .help-box ul {
        margin: 10px 0 0 18px;
        padding: 0;
        color: rgba(255,255,255,.75);
        font-size: 13px;
    }

.auth-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.dev-brand {
    display: flex;
    gap: 10px;
    align-items: center;
}

    /* ✅ slightly bigger + nicer */
    .dev-brand img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 12px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        padding: 6px;
    }

.dev-name {
    font-weight: 800;
    font-size: 12px;
    color: rgba(255,255,255,.88);
}

.dev-links {
    font-size: 12px;
    color: rgba(255,255,255,.60);
}

.sep {
    opacity: .55;
    margin: 0 6px;
}

/* Mobile spacing */
@media (max-width: 480px) {
    .auth-head h1 {
        font-size: 24px;
    }

    .brand-logo {
        height: 34px;
    }
}
