﻿
/* =========================================================
   Login Page - Government Theme (Responsive)
   ========================================================= */
:root {
    --gov-green: #0b5d3a;
    --gov-green-2: #094b2f;
    --gov-gold: #c7a34b;
    --gov-ink: #0f172a;
    --gov-muted: #64748b;
    --gov-line: #e5e7eb;
    --gov-paper: #ffffff;
    --gov-bg: #f6f8fb;
    --gov-radius: 16px;
    --gov-shadow: 0 18px 40px rgba(15,23,42,.08);
}

/* =========================================================
   Base
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f6f8fb 100%);
    overflow-x: hidden;
    position: relative;
}


.login-dots-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 23, 42, 0.10) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.6;
}

    .login-dots-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.5;
    }

/* =========================================================
   Layout
   ========================================================= */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    z-index: 2;
}

.login-container {
    width: 100%;
    max-width: 900px;
}

/* =========================================================
   Card
   ========================================================= */

.login-card {
    background: var(--gov-paper);
    border: 1px solid var(--gov-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--gov-shadow);
}

/* =========================================================
   Header
   ========================================================= */

.login-header {
    position: relative;
    overflow: hidden;
}

.login-header {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

    .login-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(15, 23, 42, 0.10) 1px, transparent 1px), radial-gradient(rgba(11, 93, 58, 0.06) 1px, transparent 1px);
        background-size: 22px 22px, 38px 38px;
        background-position: 0 0, 10px 10px;
        opacity: 0.8;
    }

    .login-header::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(255,255,255,0.0) 0%, rgba(15, 23, 42, 0.02) 100% );
    }

.login-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px;
}

.login-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px;
}

.login-logo {
    width: 110px;
    max-width: 100%;
    height: auto;
    margin-bottom: 14px;
}

.login-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-subtitle {
    color: rgba(255,255,255,.85);
    margin-bottom: 0;
}

/* =========================================================
   Body
   ========================================================= */

.login-body {
    padding: 24px 32px;
}

/* =========================================================
   Form Controls
   ========================================================= */

.form-label {
    color: var(--gov-ink);
    font-weight: 700;
    margin-bottom: 8px;
}

.gov-input {
    min-height: 56px;
    border-radius: 999px !important;
    border: 1px solid #d7dee8 !important;
    padding-inline: 20px !important;
    background: #fff !important;
    font-size: 1rem;
}

    .gov-input:focus {
        border-color: rgba(11,93,58,.45) !important;
        box-shadow: 0 0 0 .2rem rgba(11,93,58,.15) !important;
    }

/* =========================================================
   Captcha
   ========================================================= */

.dntCaptcha {
    width: 100%;
}

    .dntCaptcha img {
        display: block;
        width: auto;
        max-width: 250px;
        height: auto;
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid var(--gov-line);
    }

input[name="DNTCaptchaInputText"],
.captcha-input,
.input-validation-error {
    width: 100% !important;
    min-height: 56px !important;
    border-radius: 999px !important;
    border: 1px solid #d7dee8 !important;
    padding-inline: 20px !important;
    background: #fff !important;
    direction: rtl !important;
    text-align: right !important;
    font-size: 1rem !important;
}

    input[name="DNTCaptchaInputText"]:focus {
        border-color: rgba(11,93,58,.45) !important;
        box-shadow: 0 0 0 .2rem rgba(11,93,58,.15) !important;
        outline: none;
    }

/* =========================================================
   Button
   ========================================================= */

.btn-login {
    min-height: 58px;
    border-radius: 999px;
    background: var(--gov-green);
    border: 1px solid var(--gov-green);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    transition: .25s;
}

    .btn-login:hover {
        background: var(--gov-green-2);
        border-color: var(--gov-green-2);
        color: #fff;
    }

    .btn-login:disabled {
        opacity: .9;
        cursor: not-allowed;
    }

/* =========================================================
   Validation
   ========================================================= */

.field-validation-error {
    display: block;
    margin-top: 8px;
    color: #dc2626;
    font-size: .92rem;
}

.validation-summary-errors {
    margin-bottom: 16px;
}

.login-alert {
    border: 0;
    border-radius: 14px;
    font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gov-muted);
    font-size: .9rem;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 992px) {

    .login-container {
        max-width: 720px;
    }

    .login-header-content {
        padding: 28px;
    }

    .login-body {
        padding: 24px;
    }
}

/* =========================================================
   iPad / Small Tablet
   ========================================================= */

@media (max-width: 768px) {

    .login-wrapper {
        padding: 20px 14px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-header-content {
        padding: 24px;
    }

    .login-body {
        padding: 20px;
    }

    .login-logo {
        width: 90px;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .login-subtitle {
        font-size: .95rem;
    }

    .dntCaptcha img {
        max-width: 220px;
    }

    .gov-input,
    input[name="DNTCaptchaInputText"] {
        min-height: 54px !important;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 576px) {

    .login-wrapper {
        padding: 12px;
    }

    .login-card {
        border-radius: 16px;
    }

    .login-header-content {
        padding: 20px;
    }

    .login-body {
        padding: 18px;
    }

    .login-logo {
        width: 80px;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-subtitle {
        font-size: .9rem;
    }

    .dntCaptcha img {
        max-width: 180px;
    }

    .btn-login,
    .gov-input,
    input[name="DNTCaptchaInputText"] {
        min-height: 52px !important;
    }

    .login-circle-1,
    .login-circle-2,
    .login-circle-3 {
        display: none;
    }
}

