/* login.css — login page layout and styling */

.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    padding: 24px;
}

/* Card */

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

/* Brand */

.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: block;
}

.login-brand {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 4px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 32px;
}

/* Flash Messages */

.login-flash {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.login-flash-error {
    background: #fee2e2;
    border-left-color: #dc2626;
    color: #7f1d1d;
}

.login-flash-success {
    background: #dcfce7;
    border-left-color: #16a34a;
    color: #166534;
}

/* Hint Text */

.login-hint {
    font-size: 12px;
    color: #6b7280;
    margin: -8px 0 16px;
    line-height: 1.5;
}

/* Form Fields */

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.login-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.login-field input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-field input::placeholder {
    color: #9ca3af;
}

/* Submit Button */

.login-submit {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    font-family: inherit;
}

.login-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.login-submit:active {
    transform: scale(0.99);
}

a.login-submit-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
}

/* Footer Links */

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Password Change Form */

.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info br {
    display: none;
}

.info > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info > span:first-child label:nth-of-type(2) {
    margin-top: 8px;
}

.info label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.info input.wide {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.info input.wide:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.red {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

#savePasswordBtn {
    width: 100%;
    padding: 12px;
    margin-top: 4px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    font-family: inherit;
}

#savePasswordBtn:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

#savePasswordBtn:active {
    transform: scale(0.99);
}

.nowrap ul {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
    background: #f8fafc;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
}

.pwdReqUnmet {
    font-size: 12px;
    color: #9ca3af;
    padding: 3px 0;
}

.pwdReqUnmet::before {
    content: "\2717\0020";
}

.pwdReqMet {
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
    padding: 3px 0;
}

.pwdReqMet::before {
    content: "\2713\0020";
}

/* Dev Bypass */

.bypass-form {
    display: contents;
}

.bypass-bar {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bypass-bar button {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.bypass-bar button:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}