* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, sans-serif;
    background: linear-gradient(135deg, #1F4E79, #0e2a44);
}

.card {
    width: 360px;
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    color: #1F4E79;
}

p.sub {
    margin: 0 0 24px;
    color: #888;
    font-size: 0.85rem;
}

label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 16px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    font-size: 0.95rem;
}

input:focus {
    outline: none;
    border-color: #1F4E79;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.15);
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1F4E79;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

button:hover:not(:disabled) {
    filter: brightness(1.1);
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.err {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6c2;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: none;
}

.err.show {
    display: block;
}