/* ==========================================
   Login Header
========================================== */

.login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 0 0.5rem;
}


/* ==========================================
   Form
========================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}


/* ==========================================
   Inputs
========================================== */

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
}

.form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding-left: 44px;
    padding-right: 44px;
    transition: .3s;
    box-shadow: none;
    width: 100%;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}


/* ==========================================
   Password Button
========================================== */

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border: none;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--primary);
}


/* ==========================================
   Login Button
========================================== */

.login-btn {
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
    );
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: .35s;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    width: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37,99,235,.28);
}


/* ==========================================
   Login Options
========================================== */

.login-options {
    margin-top: 1.25rem;
}

.options-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.options-top .form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.options-top .form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin: 0;
}

.options-top .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.options-top .form-check-label {
    color: var(--text-body);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* Divider */

.login-divider {
    margin: 1.25rem 0;
    position: relative;
}

.login-divider span {
    display: block;
    height: 1px;
    background: var(--border);
}


/* Bottom - "Need an account? Contact Administrator" in one line */

.options-bottom {
    text-align: center;
}

.options-bottom span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.options-bottom a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.options-bottom a:hover {
    text-decoration: underline;
}


/* ==========================================
   Security Card - 2 Column Grid
========================================== */

.security-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-soft);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.security-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.security-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.security-header h5 {
    margin-bottom: 0.15rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.security-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* 2 Column Grid for Security Features */
.security-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-body);
    font-size: 0.85rem;
    padding: 0.15rem 0;
}

.security-item i {
    color: var(--success);
    font-size: 0.75rem;
    width: 16px;
    flex-shrink: 0;
}


/* ==========================================
   Footer
========================================== */

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.login-footer p {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.85rem;
}

.login-footer small {
    color: var(--text-light);
    font-size: 0.75rem;
}