/* Auth Page Styles - Gaza Municipality */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.login-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-box h1 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 30px;
}

.field {
    position: relative;
    margin-bottom: 8px;
}

.field .icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #94a3b8;
    pointer-events: none;
}

.field input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s;
    direction: rtl;
}

.field input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.field input::placeholder {
    color: transparent;
}

.field label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s;
    background: transparent;
    padding: 0 4px;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: 0;
    right: 12px;
    transform: translateY(-50%) scale(0.85);
    color: #0ea5e9;
    background: white;
}

.field input:focus ~ .icon,
.field input:not(:placeholder-shown) ~ .icon {
    color: #0ea5e9;
}

.toggle-password {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 8px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #0ea5e9;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer {
    margin-top: 24px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

#forgotPasswordLink {
    transition: color 0.2s;
}

#forgotPasswordLink:hover {
    color: #0284c7 !important;
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-close:hover { color: #334155; }

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 12px 20px 20px;
    text-align: center;
}

.modal-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover { background: #0284c7; }