/* ============================================================
   OPTIMUM LOGIN STYLE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background: #002864;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.logo {
    display: block;
    max-height: 40px;
    margin: 0 auto 25px auto;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 25px;
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
    background: #ffffff;
    color: #1a1a2e;
}

.form-group input:focus {
    outline: none;
    border-color: #fe6e00;
    box-shadow: 0 0 0 3px rgba(254, 110, 0, 0.15);
}

.toggle-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
}

.toggle-btn:hover {
    background: #f3f4f6;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.remember input {
    width: auto;
    accent-color: #fe6e00;
}

.remember label {
    font-size: 14px;
    color: #4b5563;
    font-weight: normal;
    margin-bottom: 0;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #fe6e00;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background: #e85e00;
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13px;
}

.links a {
    color: #fe6e00;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loadingOverlay .box {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#loadingOverlay .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #fe6e00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loadingOverlay p {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    h1 {
        font-size: 20px;
    }
}