/* Admin Login Page - lightweight styles (no AdminLTE dependency)
   Goal: visually match the old AdminLTE login page (more compact like 图一),
   while keeping minimal assets for performance. */

html, body {
    height: 100%;
}

body.admin-login-page {
    height: 100vh;
    background-color: #f4f6f9;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* match AdminLTE login page layout: box slightly lower than top */
    padding: 0 12px;
}

.login-box {
    margin: 7% auto;
    width: 360px;
    max-width: 95vw;
}

.login-logo {
    font-size: 2.1rem;
    font-weight: 300;
    margin-bottom: 0.9rem;
    text-align: center;
}

.login-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #495057;
    text-decoration: none;
}

.login-logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.login-logo b {
    font-weight: 600;
}

.login-box-msg {
    margin: 0;
    text-align: center;
    padding: 0 20px 20px 20px;
    color: #6c757d;
}

.card.login-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border: 0;
    border-radius: 0.3rem;
}

.login-card .card-body {
    padding: 1.25rem 1.25rem 1rem;
}

.btn-primary {
    --bs-btn-bg: #1A5F54;
    --bs-btn-border-color: #1A5F54;
    --bs-btn-hover-bg: #154E45;
    --bs-btn-hover-border-color: #154E45;
    --bs-btn-active-bg: #133e37;
    --bs-btn-active-border-color: #133e37;
    background-color: #1A5F54;
    border-color: #1A5F54;
}

.btn-primary:hover {
    background-color: #154E45;
    border-color: #154E45;
}

.input-group-text {
    background-color: #fff;
    border-left: 0;
}

.input-group .form-control {
    border-right: 0;
}

.form-control:focus {
    box-shadow: none;
    border-color: #8fbfb4;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #8fbfb4;
}

/* checkbox: make it smaller like AdminLTE iCheck */
.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    border: 1px solid #adb5bd;
}

.form-check-input:checked {
    background-color: #1A5F54;
    border-color: #1A5F54;
}

.form-check-label {
    color: #495057;
}

.text-muted-link {
    color: #6c757d;
    text-decoration: none;
}

.text-muted-link:hover {
    color: #495057;
    text-decoration: underline;
}

