/* ===== myLegacy — Auth pages (login, register) ====== */

/* ---------- Brand block ---------- */
.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-brand-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.auth-brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d3b66;
    margin-top: .5rem;
    letter-spacing: .5px;
}
.auth-brand-subtitle {
    color: #6b7a8f;
    font-size: .85rem;
    margin: 0;
}

/* ---------- Auth card layout ---------- */
.auth-shell {
    min-height: 80vh;
}
.auth-card {
    border: 0;
    box-shadow: 0 4px 16px rgba(13, 59, 102, .08);
    border-radius: .75rem;
}
.auth-card .card-body {
    padding: 2rem 1.75rem;
}
.auth-card h1 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #33475b;
    margin-bottom: 1.25rem;
}

/* ---------- Form fields (non-crispy templates) ---------- */
.auth-field {
    display: block;
    width: 100%;
    padding: .55rem .75rem;
    font-size: .95rem;
    border: 1px solid #d9dee6;
    border-radius: .45rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field:focus {
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, .12);
    outline: none;
}

/* ---------- Checkbox accent (remember me) ---------- */
.form-check-input:checked {
    background-color: #0d3b66;
    border-color: #0d3b66;
}
.form-check-input:focus {
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, .12);
}

/* ---------- Primary button on auth pages ---------- */
.auth-btn-primary {
    background: #0d3b66;
    border-color: #0d3b66;
    font-weight: 600;
    padding: .55rem 1rem;
}
.auth-btn-primary:hover,
.auth-btn-primary:focus {
    background: #0a2f52;
    border-color: #0a2f52;
}

/* ---------- Footer link row ---------- */
.auth-footer-link {
    text-align: center;
    font-size: .85rem;
    margin-top: 1rem;
    margin-bottom: 0;
    color: #6b7a8f;
}
.auth-footer-link a {
    color: #0d3b66;
    text-decoration: none;
    font-weight: 600;
}
.auth-footer-link a:hover {
    text-decoration: underline;
}

/* ---------- Error / message tweaks ---------- */
.auth-error {
    font-size: .85rem;
    padding: .5rem .75rem;
    border-radius: .35rem;
}

/* ---------- Username availability feedback ---------- */
.username-feedback {
    font-size: .8rem;
    transition: color .15s ease;
}
.username-feedback i {
    margin-right: 2px;
}
.username-suggestion {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 2px;
    border-radius: 3px;
    background: #eef1f5;
    color: #0d3b66;
    font-weight: 600;
    text-decoration: none;
    font-size: .75rem;
    transition: background .15s ease;
}
.username-suggestion:hover {
    background: #dbe7f5;
    text-decoration: none;
}