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

body {
    --auth-ink: #111820;
    --auth-muted: #46545b;
    --auth-border: #9ddddd;
    --auth-border-strong: #007878;
    --auth-surface: #ffffff;
    --auth-surface-soft: #f8fafc;
    --auth-dark: #006a6a;
    --auth-dark-hover: #004f4f;
    --auth-danger-bg: #fee2e2;
    --auth-danger-text: #991b1b;
    --auth-warning-bg: #fff6d6;
    --auth-warning-border: #ffbe2c;
    --auth-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
    --auth-shadow-md: 0 16px 36px rgba(15, 23, 42, 0.07);
    margin: 0;
    padding: 0;
    background: #f5fbfc;
    color: var(--auth-ink);
    font-family: "Noto Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

h1, h2, h3 {
    font-family: "Kanit", "Segoe UI", Arial, sans-serif;
}

:focus-visible {
    outline: 3px solid #050708;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #ffbe2c;
}

@media (forced-colors: active) {
    :focus-visible {
        outline: 3px solid Highlight;
        box-shadow: none;
    }
}

.is-hidden {
    display: none !important;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--auth-ink);
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.btn-block {
    width: 100%;
}

.btn-dark {
    background: var(--auth-dark);
    color: #fff;
    border-color: var(--auth-dark);
}

.btn-dark:hover,
.btn-dark:focus-visible {
    background: var(--auth-dark-hover);
    color: #fff;
    border-color: var(--auth-dark-hover);
}

.notice-box,
.alert {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: bold;
    line-height: 1.45;
}

.notice-box {
    background: var(--auth-warning-bg);
    border: 1px solid var(--auth-warning-border);
}

.alert-error,
.error {
    background: var(--auth-danger-bg);
    color: var(--auth-danger-text);
}

.form-row {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    gap: 8px;
}

.login-body,
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box,
.simple-box {
    width: 100%;
    max-width: 460px;
    margin: 40px auto;
    padding: 18px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    box-shadow: var(--auth-shadow-md);
}

.login-box {
    text-align: center;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}
.login-logo img { display: block; width: 100%; height: auto; }

.simple-box {
    display: grid;
    gap: 14px;
    text-align: left;
}

.simple-box h1,
.simple-box p {
    margin: 0;
}

.simple-box h1 {
    color: var(--auth-ink);
    font-size: 28px;
    line-height: 1.18;
}

.simple-box p {
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.55;
}

.simple-box .btn {
    width: 100%;
}

@media (max-width: 560px) {
    .login-body,
    .auth-body {
        padding: 16px;
    }

    .simple-box {
        margin: 20px auto;
        padding: 18px;
    }
}

@media (forced-colors: active) {
    .login-logo, .login-logo img { forced-color-adjust: none; }
}
