*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; background: #f5f5f5; color: #111; }
[hidden] { display: none !important; }

.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; }
.brand { font-weight: 800; font-size: 26px; letter-spacing: 6px; color: #111; text-decoration: none; }

.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 8px; padding: 32px 28px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.sub { margin: 0 0 22px; color: #666; font-size: 14px; }

form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input { font: inherit; font-weight: 400; width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
input:focus { outline: 2px solid #111; outline-offset: -1px; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 64px; }
.pw-wrap button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: 12px; font-weight: 600; color: #0b7a8a; cursor: pointer; padding: 6px; }

.btn { padding: 13px; border: 0; border-radius: 4px; background: #111; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: wait; }

.msg { margin: 0; padding: 10px 12px; border-radius: 4px; font-size: 13px; }
.msg.err { background: #fdecea; color: #b3261e; }
.msg.ok { background: #e6f4ea; color: #1b7a3a; }

.back { display: inline-block; margin-top: 20px; font-size: 13px; color: #555; text-decoration: none; }
.back:hover { color: #111; }
