:root {
    --bg: #f8efcc;
    --card: #f8f9fa;
    --text: #0b1320;
    --muted: #6b7280;
    --accent: #1e6fcc;
    /* subtle blue accent */
    --radius: 12px;
    --shadow: 0 6px 18px rgba(11, 19, 32, 0.06);
    font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.container {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Card */
.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
}

/* Logo */
.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
}

/* Title */
.title {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

/* Form elements */
.label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 12px 0 6px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dedfe3;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: var(--text);
    transition: box-shadow 120ms ease, border-color 120ms ease;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(30, 111, 204, 0.08);
}

/* Password field with toggle */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 86px;
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--accent);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Hint and extras */
.hint {
    margin: 8px 0 16px;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: left;
}

/* Submit */
.submit {
    width: 100%;
    padding: 12px 14px;
    background: var(--accent);
    color: white;
    border: 0;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 120ms ease, box-shadow 120ms;
}

.submit:active {
    transform: translateY(1px);
}

.submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Extras */
.extras {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.link {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

/* Status message */
.status {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
}

.message-danger {
    background-color: rgb(240, 110, 110);
    height: 40px;
    color: white;
    padding-top: 10px;
    border-radius: 8px;
}

.message-success {
    background-color: rgb(110, 240, 110);
    height: 64px;
    color: white;
    padding-top: 10px;
    border-radius: 8px;
}

.message-warning {
    background-color: rgb(240, 200, 110);
    height: 40px;
    color: white;
    padding-top: 10px;
    border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width:420px) {
    .card {
        padding: 20px;
        border-radius: 10px;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
}