*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: #0f1e2d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-image {
    position: fixed;
    inset: 0;
    background: url('../images/quran.jpg') center / cover no-repeat;
    filter: brightness(0.22);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 390px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.login-card .logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 14px;
}

.login-card .title-ar {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 2px;
    direction: rtl;
    letter-spacing: -0.3px;
}

.login-card .title-id {
    font-size: 0.88rem;
    color: #4a6079;
    font-weight: 500;
    margin-bottom: 4px;
}

.login-card .subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 28px;
}

.alert-err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
    margin-bottom: 18px;
    text-align: left;
}

.form-group {
    margin-bottom: 13px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.94rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.btn-login {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #1e3a8a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, transform 0.08s;
    letter-spacing: 0.3px;
}

.btn-login:hover  { background: #1e40af; }
.btn-login:active { transform: scale(0.99); }

.login-footer {
    margin-top: 26px;
    font-size: 0.72rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}
