/* NITS Timetabler Classic Login Theme CSS - Adjusted Spacing & Radius */
/* Matched to typical Timetabler sign-in page look with your requested changes */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.nits-login-body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;          
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;                  
}

.nits-login-container {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 2px;                  
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    width: 100%;
    max-width: 640px;                    
    overflow: hidden;
}

.nits-login-header {
    /* Classic Timetabler-style gradient: green → teal/cyan → blue */
    background: linear-gradient(to right, #00b140, #00c4b4, #0070c0);
    color: white;
    padding: 22px 24px;                  
    text-align: center;
}

.nits-login-header h1 {
    font-size: 24px;                     
    font-weight: bold;
    margin: 0;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.nits-subtitle {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.95;
}
.nits-instructions {
    font-size: 11px;
    margin-top: 10px;
    color: #e0e0e0;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}
/* Register Section */
.nits-register-section {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 3px;
}

.nits-register-section p {
    font-size: 12px;
    color: #333333;
    margin-bottom: 5px;
}

.nits-register-link {
    color: #0054a6;
    text-decoration: none;
    font-weight: bold;
}

.nits-register-link:hover {
    text-decoration: underline;
}

.nits-register-note {
    font-size: 11px;
    color: #666666;
    font-style: italic;
    margin-top: 5px;
}


.nits-login-form {
    padding: 32px 36px 36px;             
    background: #ffffff;
}

.nits-error-message {
    background: #fff2f2;
    border: 1px solid #c00;
    color: #c00;
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 2px;
}

.nits-error-message::before {
    content: "!";
    width: 20px;
    height: 20px;
    background: #c00;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nits-form-group {
    margin-bottom: 24px;                
}

.nits-form-group label {
    display: block;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nits-form-group input {
    width: 100%;
    padding: 10px 12px;                  
    border: 1px solid #999999;
    border-radius: 2px;                  
    font-size: 14px;
    background: #ffffff;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
}

.nits-form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

.nits-help-text {
    font-size: 11px;
    color: #555;
    margin-top: 5px;
    font-style: italic;
}

.nits-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 28px;                 
    font-size: 13px;
    color: #333333;
}

.nits-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nits-checkbox input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.forgot-password {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.nits-field-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 24px 0;
}

.nits-btn-primary {
    width: 100%;
    padding: 12px 0;                     
    background-color: #0055aa;           /* Classic NITS/Timetabler blue */
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    cursor: pointer;
}

.nits-btn-primary:hover {
    background-color: #004488;
}

.nits-btn-primary:active {
    background-color: #003366;
}

.nits-login-footer {
    text-align: center;
    color: #666666;
    font-size: 11px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.nits-login-footer p {
    margin: 5px 0;
}

.nits-login-footer a {
    color: #0066cc;
    text-decoration: none;
}

.nits-login-footer a:hover {
    text-decoration: underline;
}

/* Loading overlay & spinner (unchanged) */
.nits-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.nits-spinner {
    text-align: center;
}

.nits-spinner-circle {
    width: 42px;
    height: 42px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nits-spinner p {
    color: #0066cc;
    font-size: 13px;
    font-weight: bold;
}

/* Validation states */
.nits-form-group input.error {
    border-color: #c00;
    background-color: #fff8f8;
}

.nits-form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.18);
}

/* Responsive */
@media (max-width: 480px) {
    .nits-login-container {
        max-width: 100%;
        margin: 0 15px;
    }
    .nits-login-form {
        padding: 24px 28px;
    }
}