* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1b2f;
    background: linear-gradient(135deg, #0a1626, #14263f);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.login-box {
    background: #ffffff;
    width: 100%;
    max-width: 360px;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0d1b2f;
    font-weight: 700;
}
.login-box .field {
    margin-bottom: 1.1rem;
}
.login-box label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: #555;
}
.login-box input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-box input:focus {
    outline: none;
    border-color: #14263f;
    box-shadow: 0 0 0 3px rgba(20, 38, 63, 0.15);
}
.login-box button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 6px;
    background: #c9a24b;
    color: #0d1b2f;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.login-box button:hover {
    background: #b8912f;
}
.login-box .disclaimer {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: center;
}
.login-box .disclaimer a {
    color: #14263f;
    text-decoration: underline;
}
.login-box .back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #14263f;
    text-decoration: none;
    transition: color 0.2s;
}
.login-box .back-link .arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}
.login-box .back-link:hover {
    color: #c9a24b;
}
.login-box .back-link:hover .arrow {
    transform: translateX(-5px);
}
.login-box .login-error {
    background: #fdecea;
    color: #c0392b;
    font-size: 0.82rem;
    text-align: center;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.forgot-link {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    text-align: right;
}
.forgot-link:hover {
    text-decoration: underline;
}
.pw-rules {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.pw-rules li {
    font-size: 0.78rem;
    color: #999;
    padding: 2px 0 2px 18px;
    position: relative;
    transition: color 0.15s;
}
.pw-rules li::before {
    content: "○";
    position: absolute;
    left: 0;
}
.pw-rules li.met {
    color: #2e9e4f;
}
.pw-rules li.met::before {
    content: "●";
}
.login-notice {
    background: #eafaf928;
    color: #2e9e4f;
    font-size: 0.82rem;
    text-align: center;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.login-box .pw-wrap {
    position: relative;
}
.login-box .pw-wrap input {
    padding-right: 2.6rem;
}
.login-box .pw-wrap .pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0.25rem;
    background: none;
    border: none;
    box-shadow: none;
    color: #9aa5b4;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.login-box .pw-wrap .pw-toggle:hover {
    background: none;
    color: #14263f;
}
.login-box .pw-wrap .pw-toggle.on {
    color: #14263f;
}