* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'DM Sans', sans-serif;
    background: #f5f3ef;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrap, .wrap {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}
.login-card, .card {
    background: white;
    border: 1px solid #e2ddd6;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.login-icon, .icon {
    width: 56px;
    height: 56px;
    background: #e8f2ed;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    color: #1a1714;
    font-weight: 400;
    margin-bottom: 0.3rem;
}
.subtitle {
    color: #9c9590;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6560;
    margin-bottom: 0.4rem;
}
input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid #e2ddd6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1a1714;
    background: white;
    outline: none;
    transition: border-color 0.15s;
}
input:focus { border-color: #2c5f4a; }
.form-group { margin-bottom: 1.2rem; }
.btn-login, .btn-auth {
    width: 100%;
    padding: 0.75rem;
    background: #2c5f4a;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s;
}
.btn-login:hover, .btn-auth:hover { background: #4a8c6f; }
.btn-login-dark {
    width: 100%;
    padding: 0.75rem;
    background: #1a1714;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s;
}
.error {
    background: #fdf0ee;
    color: #c0392b;
    border: 1px solid #f5c6c2;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.2rem;
}
.msg {
    background: #e8f2ed;
    color: #2c5f4a;
    border: 1px solid #c3dfd3;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.2rem;
}
.back {
    display: block;
    text-align: center;
    margin-top: 1.2rem;
    color: #6b6560;
    font-size: 0.875rem;
    text-decoration: none;
}
.back:hover { color: #2c5f4a; }
.wa-activate-row { margin: 0.8rem 0; }
.wa-activate-label { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; cursor: pointer; }
.wa-activate-input { width: auto; margin-right: 6px; }
.webauthn-login { text-align: center; margin-top: 1rem; }
.wa-divider { color: #bbb; font-size: 12px; margin-bottom: 8px; }
.wa-login-status { margin-top: 8px; font-size: 13px; min-height: 18px; }
.forgot-link { display: block; text-align: center; margin-top: 1rem; color: #6b6560; font-size: 0.875rem; text-decoration: none; }
.flash-msg { margin-top: 12px; padding: 10px; border-radius: 8px; font-size: 13px; text-align: center; }
.flash-msg-success { background: #e8f2ed; color: #2c5f4a; }
.flash-msg-info { background: #e8f2ed; color: #2c5f4a; }
.flash-msg-error { background: #fdf0ee; color: #c0392b; }
