/* ---- Full-height, no-scroll page shell (desktop / laptop) ---- */
html, body {
    height: 100%;
}

.login-page {
    height: 100vh;
    overflow: hidden;
}

.login-row {
    height: 100%;
}

/* Below xl, or on short viewports, let the page scroll normally
   so nothing gets clipped on tablets/phones or small windows */
@media (max-width: 1199px), (max-height: 599px) {
    .login-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .login-row {
        height: auto;
    }
}

/* ---- Left brand panel ---- */
.login-brand-panel {
    position: relative;
    height: 100%;
    background: linear-gradient(160deg, #0a3d2e 0%, #0f5c42 45%, #0b4a37 100%);
    align-items: center;
    justify-content: center;
    padding: 3vh 4vw;
    overflow: hidden;
}

/* Crescent watermark — two overlapping circles, one subtracted via mask */
.brand-crescent {
    position: absolute;
    width: 340px;
    height: 340px;
    top: -110px;
    right: -70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240, 201, 135, 0.18), rgba(255, 255, 255, 0.07));
    -webkit-mask-image: radial-gradient(circle 170px at 50% 50%, #000 99%, transparent 100%),
    radial-gradient(circle 150px at 66% 40%, #000 99%, transparent 100%);
    -webkit-mask-composite: source-out;
    mask-image: radial-gradient(circle 170px at 50% 50%, #000 99%, transparent 100%),
    radial-gradient(circle 150px at 66% 40%, #000 99%, transparent 100%);
    mask-composite: exclude;
    pointer-events: none;
}

.brand-geo-overlay {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96'><g fill='none' stroke='white' stroke-opacity='0.08' stroke-width='1'><rect x='24' y='24' width='48' height='48'/><rect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/><circle cx='48' cy='48' r='30' stroke-opacity='0.05'/></g></svg>");
    background-size: 96px 96px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
    pointer-events: none;
}

/* Mosque skyline illustration, anchored to the bottom of the panel */
.brand-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 34%;
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    width: 100%;
}

/* Arch niche housing the logo — mihrab-inspired silhouette */
.brand-arch {
    position: relative;
    width: 210px;
    height: 132px;
    margin: 0 auto 2.4vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(240, 201, 135, 0.55);
    border-radius: 105px 105px 10px 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.22);
}

.brand-arch-finial {
    position: absolute;
    top: -7px;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    background: #f0c987;
    border-radius: 2px;
}

.brand-arch-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(240, 201, 135, 0.28);
    border-radius: 90px 90px 6px 6px;
    pointer-events: none;
}

.brand-logo-plate {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.brand-arch-logo {
    max-height: 28px;
    max-width: 130px;
    width: auto;
    display: block;
}

.brand-eyebrow {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f0c987;
    margin-bottom: 1.2vh;
}

.brand-heading {
    font-size: clamp(24px, 3.2vh, 38px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.2vh;
}

.brand-heading .txt-success {
    display: block;
    color: #f0c987 !important;
}

/* Manuscript-style flourish divider */
.brand-flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2vh;
}

.flourish-line {
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
}

.flourish-line:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent);
}

.flourish-diamond {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: #f0c987;
}

.brand-subtext {
    font-size: clamp(13px, 1.7vh, 15.5px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    text-align: center;
    margin: 0 auto 3vh;
}

.brand-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 3vh;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: polygon(
        10px 0, calc(100% - 10px) 0, 100% 10px,
        100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%,
        0 calc(100% - 10px), 0 10px
    );
}

.feature-icon {
    flex: none;
    width: clamp(36px, 4.6vh, 44px);
    height: clamp(36px, 4.6vh, 44px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    width: 19px;
    height: 19px;
}

.feature-icon-gold {
    background: rgba(240, 201, 135, 0.16);
}

.feature-icon-gold i {
    color: #f0c987;
}

.feature-icon-mint {
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon-mint i {
    color: #eaf7f0;
}

.feature-copy h6 {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.feature-copy p {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0;
}

.brand-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 2.2vh;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item h3 {
    font-size: clamp(18px, 2.4vh, 24px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.stat-item span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.62);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
}

/* ---- Right form panel ---- */
.login-card {
    background: linear-gradient(160deg, #f7f9fc 0%, #ffffff 55%) !important;
    height: 100%;
    min-height: 100vh;
    padding: 20px;
}

.login-main-card {
    position: relative;
    width: 450px;
    max-width: 100%;
    background-color: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.login-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0b2c5f, #2f6fed 55%, #3ddc97);
}

.login-main-card .logo {
    margin-bottom: 18px !important;
}

.card-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #22b573;
    margin-bottom: 6px;
}

.login-main-card h4 {
    color: #0b2c5f;
    font-weight: 800;
}

.login-main-card .theme-form .form-group label {
    font-weight: 600;
    color: #0b2c5f;
}

.form-input-icon {
    position: relative;
}

.form-input-icon .input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #9aa5b5;
    pointer-events: none;
    transition: color 0.15s ease-in-out;
}

.login-card .login-main-card .theme-form .form-input-icon .form-control {
    padding-left: 42px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e6eaf0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.login-card .login-main-card .theme-form .form-input-icon .form-control:focus,
.login-card .login-main-card .theme-form .form-input-icon .form-control:hover {
    background-color: #ffffff !important;
    border: 1px solid #2f6fed !important;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12) !important;
}

.form-input-icon .form-control:focus ~ .input-icon,
.form-input-icon:hover .input-icon {
    color: #2f6fed;
}

.form-input-icon .show-hide {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

.login-main-card .checkbox label::before {
    border-radius: 5px;
}

.login-main-card .checkbox input[type="checkbox"]:checked + label::before {
    color: #22b573;
    border-color: #22b573;
}

.login-main-card .theme-form .link {
    color: #2f6fed;
    font-weight: 600;
}

.brand-signin-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0b2c5f, #2f6fed) !important;
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(47, 111, 237, 0.28);
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.brand-signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(47, 111, 237, 0.34);
}

.brand-signin-btn i {
    width: 16px;
    height: 16px;
}

.social-icons-row {
    display: flex;
    gap: 10px;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e6eaf0;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.social-icon-btn:hover {
    background: #ffffff;
    border-color: #2f6fed;
    transform: translateY(-2px);
}

.social-icon-btn i {
    width: 18px;
    height: 18px;
}

@media (max-width: 1199px), (max-height: 599px) {
    .login-card {
        min-height: 100vh;
        height: auto;
        padding: 30px 12px;
    }
}
