/* Zigma PM — Login page (adopted from iloapp_v3 login design) */
:root {
    --btu-dark: #162C5B;
    --btu-emerald: #03452B;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.login-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; position: relative;
    background: url('../img/bg.png') no-repeat center center;
    background-size: cover;
}
.login-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(22, 44, 91, 0.85), rgba(3, 69, 43, 0.85));
    z-index: 0;
}
.login-card {
    position: relative; z-index: 1; background: #fff; border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); padding: 20px 28px 24px;
    width: 100%; max-width: 420px; border-top: 4px solid var(--btu-emerald);
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-logo { display: block; margin: 0 auto 16px; width: 100%; max-width: 110px; height: auto; object-fit: contain; }
.login-header h2 { font-size: 1.75rem; font-weight: 700; color: var(--btu-dark); line-height: 1.3; }
.login-header p { font-size: 1rem; color: #6b7280; margin-top: 6px; }
.login-alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; font-size: 0.875rem; line-height: 1.5; border-left: 4px solid; }
.login-alert-danger { background-color: #fef2f2; border-color: #ef4444; color: #991b1b; }
.login-alert-success { background-color: #f0fdf4; border-color: #22c55e; color: #166534; }
.login-alert-info { background-color: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.login-alert-warning { background-color: #fffbeb; border-color: #f59e0b; color: #78350f; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-icon { position: absolute; left: 12px; width: 20px; height: 20px; color: #9ca3af; pointer-events: none; flex-shrink: 0; }
.login-input-wrap input {
    width: 100%; padding: 11px 38px 11px 40px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 0.9375rem; color: #111827; background: #fff;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit;
}
.login-input-wrap input::placeholder { color: #9ca3af; }
.login-input-wrap input:focus { border-color: var(--btu-dark); box-shadow: 0 0 0 3px rgba(22, 44, 91, 0.12); }
.login-toggle {
    position: absolute; right: 8px; background: none; border: none; cursor: pointer;
    padding: 4px 6px; color: #6b7280; display: flex; align-items: center; border-radius: 4px;
}
.login-toggle:hover { color: #374151; background: #f3f4f6; }
.login-submit {
    width: 100%; padding: 12px; margin-top: 8px; background: var(--btu-dark); color: #fff;
    border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.2s, background 0.2s; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.login-submit:hover:not(:disabled) { background: #121f45; }
.login-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.login-spinner { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: login-spin 0.7s linear infinite; }
@keyframes login-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.login-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e7eb; text-align: center; }
.login-powered { font-size: 0.8125rem; color: #6b7280; line-height: 1.6; }
.login-powered strong { color: var(--btu-dark); }
.login-powered a { color: var(--btu-emerald); font-weight: 600; text-decoration: none; }
.login-powered a:hover { text-decoration: underline; }
@media (max-width: 480px) { .login-card { padding: 22px 20px; } }
