﻿@font-face{font-family:Almarai;src:url('/assets/login1/fonts/almarai-v2-arabic/almarai-v2-arabic-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Almarai;src:url('/assets/login1/fonts/almarai-v2-arabic/almarai-v2-arabic-700.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Almarai;src:url('/assets/login1/fonts/almarai-v2-arabic/almarai-v2-arabic-800.woff2') format('woff2');font-weight:800;font-display:swap}

:root {
    --awda-green: #2c6a30;
    --awda-green-dark: #1b4520;
    --awda-green-light: #38843d;
    --awda-red: #ec1f23;
    --awda-ink: #173744;
    --awda-muted: #5e7368;
    --awda-border: #d2e2d7;
    --blue: #2c6a30;
    --green: #2c6a30;
    --ink: #173744;
    --muted: #5e7368;
}

* { box-sizing: border-box; }

html, body.login {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    background: #f0f5f1;
    font-family: Almarai, Tahoma, sans-serif !important;
    color: var(--awda-ink);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

body.login .login-form {
    height: 100%;
    overflow: hidden;
    margin: 0;
}

/* ==========================================================================
   Master Outer Shell & Perfectly Tuned Box Edges (الحواف)
   ========================================================================== */
.user-login-5 {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    min-height: 0 !important;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* The Main Box (المربع / البوكس) with crisp rounded edges & zero clip-leakage */
.user-login-5 > .row {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto !important;
    min-height: calc(100dvh - 112px);
    border: 1.5px solid #cfe0d5;
    border-radius: 28px !important;
    overflow: hidden !important;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    box-shadow: 0 24px 75px -12px rgba(32, 84, 42, 0.12), 0 4px 16px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    flex-shrink: 0;
    transform-origin: center center;
}

.user-login-5 .bs-reset {
    margin: 0 !important;
    padding: 0 !important;
}

.user-login-5 > .row > .col-md-6 {
    float: none;
    position: relative;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* Left Column in RTL (Form Container - larger, prominent) */
.user-login-5 .login-container {
    width: 56% !important;
    flex: 0 0 56% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    padding: 38px 65px 24px !important;
    background: #ffffff !important;
    border-radius: 26px 0 0 26px !important;
    border-right: 1px solid #e4eee7 !important;
    border-left: none !important;
    min-height: 0;
    position: relative;
}

/* Right Column in RTL (Welcome Panel - slender, vertical) */
.user-login-5 .welcome-column,
.user-login-5 > .row > .col-md-6:not(.login-container) {
    width: 44% !important;
    flex: 0 0 44% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 26px 26px 0 !important;
    overflow: hidden;
    position: relative;
}

.welcome-panel {
    width: 100%;
    height: 100%;
    min-height: calc(100dvh - 112px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 44px;
    background: radial-gradient(ellipse at 15% 82%, #d6edd9 0, transparent 55%),
                radial-gradient(ellipse at 100% 0, #fbe8ea 0, transparent 55%),
                #edf6f1;
    border-radius: 0 26px 26px 0 !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    animation: login-reveal 0.65s ease both;
}

/* ==========================================================================
   Logo & Brand Presentation (الشعار والصورة)
   ========================================================================== */
.organization-logos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.organization-logo-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 0;
}

.organization-logo-img {
    max-height: clamp(75px, 11vh, 100px) !important;
    max-width: 320px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.07));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.organization-logo-img:hover {
    transform: scale(1.03);
}

/* Top Updates Pill Button */
.awda-updates-top {
    position: absolute;
    top: 24px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 10;
}

.awda-updates-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.awda-updates-btn:hover {
    background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32) !important;
}

.awda-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--awda-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(236, 31, 35, 0.7);
    animation: awdaPulse 1.8s infinite;
}

@keyframes awdaPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(236, 31, 35, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(236, 31, 35, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(236, 31, 35, 0); }
}

/* Form Content */
.user-login-5 .login-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto !important;
    padding: 0 !important;
    animation: login-reveal 0.7s ease both;
}

.section-kicker {
    font-size: 13.5px;
    color: var(--awda-green);
    font-weight: 700;
    display: block;
}

.signin-title {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0 10px;
    letter-spacing: -0.5px;
    color: var(--awda-green);
    line-height: 1.3;
}

.signin-intro {
    font-size: 13.5px;
    color: var(--awda-muted);
    line-height: 1.8;
    margin-bottom: 22px;
}

.user-login-5 .login-content .row {
    margin: 0;
}

.user-login-5 .login-content .col-xs-6 {
    width: 100%;
    padding: 0;
    position: relative;
    margin-bottom: 16px;
}

.user-login-5 .login-content label {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--awda-ink);
}

.validation-label {
    color: var(--awda-red);
    margin-right: 8px;
    font-size: 12px;
    font-weight: 700;
}

.user-login-5 .login-content .form-control {
    height: 52px;
    background: #f8fbf9;
    border: 1.5px solid #d2dfd6;
    border-radius: 12px !important;
    font: 14.5px Almarai, Tahoma, sans-serif;
    padding: 0 16px;
    color: var(--awda-ink);
    margin: 0;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.user-login-5 .login-content .form-control:focus {
    border-color: var(--awda-green);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 106, 48, 0.14);
}

.user-login-5 .login-content .form-control::placeholder {
    color: #8c9f94;
    font-size: 13px;
}

#txtPassword {
    padding-left: 50px;
}

.password-toggle {
    position: absolute;
    left: 8px;
    bottom: 6px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #72888e;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.password-toggle:hover {
    background: #e7f2eb;
    color: var(--awda-green);
}

.user-login-5 .login-content .col-sm-12 {
    padding: 0;
}

.user-login-5 .login-content .btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 12px !important;
    background: linear-gradient(110deg, var(--awda-green) 0%, var(--awda-green-light) 100%);
    border-bottom: 3px solid var(--awda-green-dark);
    font: 700 16px Almarai, Tahoma, sans-serif;
    color: #ffffff;
    margin-top: 8px;
    box-shadow: 0 8px 22px rgba(44, 106, 48, 0.28);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.user-login-5 .login-content .btn:hover {
    background: linear-gradient(110deg, var(--awda-green-dark) 0%, var(--awda-green) 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 24px rgba(44, 106, 48, 0.35);
}

.user-login-5 .login-content .btn i {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.user-login-5 .login-content .btn:hover i {
    transform: translateX(-4px);
}





/* ==========================================================================
   Left Side: Welcome Panel (Graphic Care Art)
   ========================================================================== */
.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px;
    color: var(--awda-green);
}

.brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--awda-red);
    box-shadow: 0 6px 16px rgba(44, 106, 48, 0.1);
    font-size: 22px;
}

.brand-caption {
    margin-right: auto;
    color: var(--awda-muted);
    font-size: 11px;
    letter-spacing: 2px;
    direction: ltr;
    font-weight: 700;
}

.welcome-content {
    margin-top: 24px;
}

.eyebrow {
    font-size: 12.5px;
    color: var(--awda-green);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.eyebrow > span {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: var(--awda-red);
}

.welcome-content h2 {
    font-size: 36px;
    line-height: 1.6;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 16px 0 12px;
    color: var(--awda-ink);
}

.green-dot {
    color: var(--awda-green);
}

.welcome-content > p {
    font-size: 13.5px;
    color: var(--awda-muted);
    line-height: 2;
    margin: 0;
}

/* Care Art: Center pulsing heart with orbiting interactive chips */
.care-art {
    height: 230px;
    position: relative;
    max-width: 400px;
    margin: 20px auto 0;
    direction: ltr;
}

.orbit {
    border: 1.5px solid #bddbc9;
    border-radius: 50% !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 200px;
    height: 200px;
}

.orbit-two {
    width: 290px;
    height: 290px;
    border-style: dashed;
    opacity: 0.6;
}

.care-center {
    height: 104px;
    width: 104px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-9deg);
    background: #ffffff;
    border: 8px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px !important;
    box-shadow: 0 20px 50px rgba(44, 106, 48, 0.18);
    display: grid;
    place-items: center;
    font-size: 45px;
    color: var(--awda-red);
    animation: care-float 5s ease-in-out infinite;
}

.care-center i {
    transform: rotate(9deg);
}

.art-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 24px rgba(44, 106, 48, 0.1);
    border: 1px solid #ffffff;
    border-radius: 13px !important;
    padding: 12px 18px;
    font-size: 12.5px;
    direction: rtl;
    color: var(--awda-ink);
    font-weight: 700;
    animation: chip-float 6s ease-in-out infinite;
}

.art-chip i {
    font-size: 16px;
}

.art-chip b {
    width: 6px;
    height: 6px;
    background: var(--awda-green);
    border-radius: 50% !important;
}

.chip-one {
    right: 0;
    top: 14px;
}

.chip-two {
    left: 0;
    top: 100px;
    animation-delay: -2s;
}

.chip-three {
    right: 20px;
    bottom: 5px;
    animation-delay: -4s;
}

.welcome-bottom {
    font-size: 12px;
    color: var(--awda-muted);
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.welcome-bottom:before {
    content: '';
    width: 24px;
    height: 2.5px;
    background: var(--awda-green);
    border-radius: 2px;
}

.welcome-bottom a {
    color: var(--awda-green);
    text-decoration: none;
    font-weight: 700;
}

.welcome-bottom a:hover {
    text-decoration: underline;
}

/* Keyframe animations */
@keyframes login-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes care-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(-9deg); }
    50% { transform: translate(-50%, calc(-50% - 7px)) rotate(-5deg); }
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==========================================================================
   Page Footer
   ========================================================================== */
.page-copyright {
    position: fixed;
    inset: auto 0 0;
    height: 64px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    background: #f0f5f1;
    border-top: 1px solid #d8e6dc;
    font-family: Almarai, Tahoma, sans-serif;
    color: var(--awda-muted);
    z-index: 100;
}

.page-copyright-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    font-size: 12px;
    font-weight: 600;
}

.page-copyright-links a {
    color: var(--awda-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.page-copyright-links a:hover {
    color: var(--awda-red);
}

.page-copyright .copyright-year {
    font-size: 11px;
    color: #7b8e83;
    margin: 0;
}

/* Alert Styling for ASP.NET Messages */
.user-login-5 .alert {
    border-radius: 12px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Responsive Rules (Desktop, Tablets & Mobile Phones)
   ========================================================================== */
@media (min-width: 768px) and (max-height: 850px) {
    .user-login-5 { padding: 16px; }
    .user-login-5 > .row { min-height: calc(100dvh - 96px); }
    .user-login-5 .login-container { padding: 28px 45px 18px !important; }
    .signin-title { font-size: 28px; margin: 6px 0 8px; }
    .signin-intro { margin-bottom: 16px; }
    .user-login-5 .login-content .col-xs-6 { margin-bottom: 12px; }
    .welcome-panel { padding: 28px 38px; }
    .welcome-content { margin-top: 14px; }
    .welcome-content h2 { font-size: 30px; margin: 10px 0; }
    .care-art { height: 180px; margin-top: 10px; }
    .orbit-one { width: 160px; height: 160px; }
    .orbit-two { width: 220px; height: 220px; }
    .care-center { width: 85px; height: 85px; font-size: 36px; }
}

@media (min-width: 768px) and (max-height: 680px) {
    .user-login-5 { padding: 10px; }
    .user-login-5 > .row { min-height: calc(100dvh - 84px); }
    .user-login-5 .login-container { padding: 18px 35px 12px !important; }
    .signin-title { font-size: 24px; }
    .user-login-5 .login-content .form-control { height: 46px; }
    .user-login-5 .login-content .btn { height: 46px; }
    .care-art { height: 150px; }
    .care-center { width: 75px; height: 75px; font-size: 32px; }
}

/* Tablet & Mobile Breakpoint (<= 991px) */
@media (max-width: 991px) {
    html, body.login {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    .user-login-5 {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible !important;
    }
    .user-login-5 > .row {
        flex-direction: column;
        width: 100%;
        max-width: 520px;
        margin: 0 auto !important;
        min-height: auto !important;
        border-radius: 24px !important;
        transform: none !important;
        box-shadow: 0 16px 45px -10px rgba(32, 84, 42, 0.14);
    }
    .user-login-5 > .row > .col-md-6,
    .user-login-5 .login-container {
        width: 100% !important;
        flex: 1 1 100% !important;
        border-radius: 24px !important;
        border-right: none !important;
        border-left: none !important;
        padding: 34px 38px 24px !important;
    }
    .user-login-5 .welcome-column,
    .user-login-5 > .row > .col-md-6:not(.login-container) {
        display: none !important;
    }
    .page-copyright {
        position: static;
        margin-top: 20px;
        margin-bottom: 8px;
        padding: 8px 16px;
        background: transparent;
        border-top: none;
    }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
    .user-login-5 {
        padding: 12px 10px 16px !important;
    }
    .user-login-5 > .row {
        max-width: 100%;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px -6px rgba(32, 84, 42, 0.12);
    }
    .user-login-5 .login-container {
        padding: 24px 18px 18px !important;
        border-radius: 20px !important;
    }
    .awda-updates-top {
        top: 14px;
        left: 14px;
    }
    .awda-updates-btn {
        padding: 4px 12px !important;
        font-size: 11px !important;
        gap: 5px;
    }
    .organization-logos {
        margin-bottom: 16px;
        margin-top: 10px;
    }
    .organization-logo-img {
        max-height: 65px !important;
        max-width: 210px !important;
    }
    .signin-title {
        font-size: 24px;
        margin: 6px 0 8px;
    }
    .signin-intro {
        font-size: 12.5px;
        margin-bottom: 16px;
        line-height: 1.65;
    }
    .user-login-5 .login-content label {
        font-size: 12.5px;
        margin-bottom: 6px;
    }
    /* Set 16px font-size to prevent automatic zoom on iOS Safari */
    .user-login-5 .login-content .form-control {
        height: 48px;
        font-size: 16px !important;
        padding: 0 14px;
        border-radius: 10px !important;
    }
    #txtPassword {
        padding-left: 46px;
    }
    .password-toggle {
        width: 38px;
        height: 38px;
        left: 5px;
        bottom: 5px;
    }
    .user-login-5 .login-content .btn {
        height: 48px;
        font-size: 15px;
        margin-top: 6px;
        border-radius: 10px !important;
    }
    .awda-inspirational-line {
        font-size: 11.5px;
        padding-top: 12px;
        margin-top: 14px;
        gap: 6px;
    }
    .page-copyright {
        font-size: 11px;
        padding: 6px 10px;
    }
    .page-copyright-links {
        gap: 6px 12px;
        font-size: 11px;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .user-login-5 {
        padding: 8px 6px 12px !important;
    }
    .user-login-5 .login-container {
        padding: 20px 14px 14px !important;
    }
    .organization-logo-img {
        max-height: 55px !important;
        max-width: 175px !important;
    }
    .signin-title {
        font-size: 21px;
    }
    .signin-intro {
        font-size: 11.5px;
    }
    .user-login-5 .login-content .btn {
        font-size: 14px;
        height: 46px;
    }
    .awda-inspirational-line {
        font-size: 10.5px;
        flex-direction: column;
        gap: 2px;
    }
}

.awda-inspirational-line {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed #dbe6de;
    text-align: center;
    font-size: 13px;
    color: var(--awda-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.awda-inspirational-line i {
    font-size: 14px;
    animation: heartPulse 2.2s infinite ease-in-out;
}
@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}
