* {
    box-sizing: border-box;
}

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

body.login-page {
    margin: 0;
    background: #f4f6f8;
    color: #1d252d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        linear-gradient(90deg, rgba(23, 84, 96, 0.08), transparent 44%),
        linear-gradient(180deg, #fbfcfd 0%, #eef2f4 100%);
}

.login-panel {
    width: min(100%, 420px);
    padding: 32px;
    border: 1px solid #d9e0e5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(26, 39, 52, 0.12);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #175460;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.merchant-login-page .brand-mark {
    background: #6f4d1f;
}

.login-brand p {
    margin: 0 0 4px;
    color: #66727c;
    font-size: 13px;
    line-height: 1.4;
}

.login-brand h1 {
    margin: 0;
    color: #16212a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.login-alert {
    margin-bottom: 20px;
    padding: 11px 12px;
    border: 1px solid #f1b8b8;
    border-radius: 6px;
    background: #fff3f3;
    color: #9e2626;
    font-size: 14px;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    color: #35424d;
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    height: 44px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid #cbd4dc;
    border-radius: 6px;
    background: #ffffff;
    color: #16212a;
    font: inherit;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.login-form input:focus {
    border-color: #1f7584;
    box-shadow: 0 0 0 3px rgba(31, 117, 132, 0.16);
}

.login-form button {
    height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 6px;
    background: #175460;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}

.merchant-login-page .login-form button {
    background: #6f4d1f;
}

.login-form button:hover {
    background: #103f49;
}

.merchant-login-page .login-form button:hover {
    background: #563b17;
}

.login-form button:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .login-shell {
        padding: 20px 12px;
        place-items: stretch;
        align-items: center;
    }

    .login-panel {
        padding: 24px;
    }

    .login-brand h1 {
        font-size: 22px;
    }
}
