/**
 * Public Website — Login page (Phase 10)
 * Scoped `.pub-login-*`. Self-contained: does NOT depend on the old
 * assets/css/style.css .form-control/.form-group/.alert classes —
 * those were never loaded by public-header.php, so the previous
 * version of this page had completely unstyled inputs (confirmed via
 * computed-style check: 2px inset browser-default border, no
 * padding/radius at all). This file fixes that by not depending on
 * them in the first place.
 */

.pub-login-wrap {
    max-width: 400px;
    margin: 0 auto;
    padding: 1.75rem 1rem 3rem;
}

.pub-login-card {
    background: #fff;
    border: 1px solid var(--nkst-color-border, #e5e7eb);
    border-radius: var(--nkst-radius-lg, 16px);
    box-shadow: var(--nkst-shadow-md, 0 2px 10px rgba(0,0,0,.1));
    padding: 1.5rem 1.35rem;
}

.pub-login-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto .85rem;
}

.pub-login-title {
    font-size: var(--nkst-font-xl, 22px);
    font-weight: 800;
    color: var(--nkst-color-text, #1f2937);
    margin: 0 0 .3rem;
    text-align: center;
}
.pub-login-subtitle {
    font-size: var(--nkst-font-sm, 14px);
    color: var(--nkst-color-text-muted, #6b7280);
    margin: 0 0 1.25rem;
    text-align: center;
}

.pub-login-alert {
    border-radius: var(--nkst-radius-sm, 8px);
    padding: .75rem .9rem;
    font-size: var(--nkst-font-xs, 13px);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.pub-login-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pub-login-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.pub-login-field { margin-bottom: .9rem; }
.pub-login-field label {
    display: block;
    font-size: var(--nkst-font-xs, 13px);
    font-weight: 700;
    color: var(--nkst-color-text, #1f2937);
    margin-bottom: .35rem;
}
.pub-login-field input {
    width: 100%;
    padding: .75rem .9rem;
    border-radius: var(--nkst-radius-sm, 8px);
    border: 1px solid var(--nkst-color-border, #e5e7eb);
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 46px;
}
.pub-login-field input:focus { outline: 2px solid var(--nkst-color-primary, #1e3a8a); outline-offset: 1px; }

.pub-login-password-wrap { position: relative; }
.pub-login-password-wrap input { padding-right: 2.6rem; }
.pub-login-toggle {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--nkst-color-text-muted, #6b7280);
    padding: .5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-login-submit {
    width: 100%;
    min-height: 46px;
    font-size: var(--nkst-font-sm, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .35rem;
}

.pub-login-footer {
    text-align: center;
    margin-top: 1.1rem;
    font-size: var(--nkst-font-sm, 14px);
    color: var(--nkst-color-text-muted, #6b7280);
}
.pub-login-footer a {
    color: var(--nkst-color-primary, #1e3a8a);
    font-weight: 700;
    text-decoration: none;
}
.pub-login-help {
    text-align: center;
    margin-top: .6rem;
    font-size: var(--nkst-font-2xs, 12px);
    color: var(--nkst-color-text-muted, #6b7280);
}
.pub-login-help a { color: var(--nkst-color-text-muted, #6b7280); text-decoration: underline; }
