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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --card: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
    color: var(--text);
    position: fixed;
    inset: 0;
}

.login-page {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-shell {
    width: 100%;
    max-width: 980px;
    height: min(720px, calc(100dvh - 32px));
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    display: grid;
    grid-template-columns: 1fr 440px;
    overflow: hidden;
}

.login-brand-panel {
    padding: 52px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 24px;
}

.login-brand-panel h1 {
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.2px;
    color: var(--text);
    margin-bottom: 16px;
}

.login-brand-panel p {
    max-width: 430px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.brand-stats {
    display: flex;
    gap: 14px;
}

.brand-stats div {
    min-width: 130px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.brand-stats strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

.brand-stats span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.login-card {
    padding: 46px 42px;
    background: #ffffff;
    border-left: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 28px;
}

.logo-img {
    width: 120px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.logo-container h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 4px;
}

.logo-container p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 14px;
    margin-bottom: 20px;
}

.form-group-login {
    margin-bottom: 18px;
}

.form-group-login label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.input-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    z-index: 2;
}

.login-input {
    height: 54px;
    border-radius: 16px;
    padding-left: 48px;
    padding-right: 48px;
    border: 1.5px solid #e5e7eb;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.login-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-toggle {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary);
}

.btn-login {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s ease;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: #94a3b8;
}

.login-footer strong {
    color: var(--text);
}

@media (max-width: 900px) {

    .login-page {
        padding: 12px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        height: calc(100dvh - 24px);
        border-radius: 24px;
    }

    .login-brand-panel {
        display: none;
    }

    .login-card {
        border-left: none;
        height: 100%;
        padding: 22px 20px;
        justify-content: center;
    }

    .logo-container {
        margin-bottom: 18px;
    }

    .logo-img {
        width: 80px;
        margin-bottom: 10px;
    }

    .logo-container h2 {
        font-size: 22px;
    }

    .logo-container p {
        font-size: 12px;
    }

    .form-group-login {
        margin-bottom: 12px;
    }

    .login-input {
        height: 48px;
        border-radius: 14px;
    }

    .btn-login {
        height: 50px;
        border-radius: 14px;
    }

    .login-footer {
        margin-top: 14px;
    }
}

@media (max-width: 420px) {

    .login-page {
        padding: 8px;
    }

    .login-shell {
        height: calc(100dvh - 16px);
        border-radius: 20px;
    }

    .login-card {
        padding: 18px 16px;
    }

    .logo-img {
        width: 70px;
    }

    .logo-container h2 {
        font-size: 20px;
    }
}

@supports (-webkit-touch-callout: none) {

    .login-page {
        height: -webkit-fill-available;
    }

    .login-shell {
        height: calc(-webkit-fill-available - 24px);
    }
}