﻿/* =============================================================
   login-base.css — iMessaging Portal
   Static styles for the login/public layout.
   No Razor, no @themeColor. Uses var(--theme).
   ============================================================= */
body {
    background: var(--body);
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;
}
a{
    text-decoration: none !important;
}
/* ── Structural ────────────────────────────────────────────── */
.form-label {
    font-family: "Poppins", sans-serif !important;
}

.thank-you-pop {
    width: 100%;
    padding: 20px;
    text-align: center;
}

    .thank-you-pop img {
        width: 40%;
        height: auto;
        margin: 0 auto;
        display: block;
        margin-bottom: 25px;
    }

    .thank-you-pop h1 {
        font-size: 42px;
        margin-bottom: 25px;
        color: #5C5C5C;
    }

    .thank-you-pop p {
        font-size: 20px;
        margin-bottom: 27px;
        color: #5C5C5C;
    }

    .thank-you-pop h3.cupon-pop {
        font-size: 25px;
        margin-bottom: 40px;
        color: #222;
        display: inline-block;
        text-align: center;
        padding: 10px 20px;
        border: 2px dashed #222;
        clear: both;
        font-weight: normal;
    }

        .thank-you-pop h3.cupon-pop span {
            color: #03A9F4;
        }

    .thank-you-pop a {
        display: inline-block;
        margin: 0 auto;
        padding: 9px 20px;
        color: #fff;
        text-transform: uppercase;
        font-size: 14px;
        background-color: #8BC34A;
        border-radius: 17px;
    }

        .thank-you-pop a i {
            margin-right: 5px;
            color: #fff;
        }

.customeContainer {
    padding: 50px;
    background-color: #ffffff;
    border-radius: 25px;
}

.aCustomeStyle {
    cursor: pointer !important;
}

.no-highlight {
    user-select: none;
}

/* ── OTP pin input ─────────────────────────────────────────── */
.pin > input {
    text-align: center;
    width: 1em;
}

    .pin > input:invalid {
        color: red;
        caret-color: #000;
    }

.customeLogoWidth {
    max-width: 400px !important;
}

/* ── Wrapper input (OTP boxes) ─────────────────────────────── */
.wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

    .wrapper input.field {
        width: 50px;
        line-height: 50px;
        font-size: 32px;
        border: none;
        background-color: white;
        border-radius: 5px;
        border: solid thin var(--theme);
        text-align: center;
        text-transform: uppercase;
        color: var(--theme);
    }

        .wrapper input.field:focus {
            outline: none;
        }

button.resend {
    background-color: transparent;
    border: none;
    font-weight: 600;
    color: var(--theme);
    cursor: pointer;
}

    button.resend i {
        margin-left: 5px;
    }

    button.resend:disabled {
        font-weight: 300;
        cursor: auto;
    }

/* ── Spinner ───────────────────────────────────────────────── */
#spinner {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background-color: rgba(123,125,128,.3);
    z-index: 1031;
    padding-top: 25%;
}

.spinner-border {
    width: 50px;
    height: 50px;
    color: var(--theme) !important;
}

/* ── Modal structural ──────────────────────────────────────── */
.custom-modal {
    display: none;
    margin-top: 0;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,.5);
}

.custom-modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    border-radius: 20px;
    background: white;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 30px rgba(0,0,0,.3);
    animation: fadeInModal .3s ease-in-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.iconModel {
    width: 80px;
}

@keyframes pop {
    0% {
        transform: scale(.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Language direction ────────────────────────────────────── */
html[dir="rtl"] .language {
    text-align: left;
    padding-left: 1rem;
}

html[dir="ltr"] .language {
    text-align: right;
    padding-right: 1rem;
}

html[dir="rtl"] .inset {
    inset: auto 30px 0px auto !important;
}

html[dir="ltr"] .inset {
    inset: auto auto 0px 70px !important;
}

html[dir="rtl"] .text-direction {
    text-align: right !important;
}

html[dir="ltr"] .text-direction {
    text-align: left !important;
}

/* ── Header/footer lang pills (static) ─────────────────────── */
.header-lang-options {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 3px;
}

.header-lang-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    color: rgba(255,255,255,.75);
    transition: all .2s ease;
    letter-spacing: .03em;
}

    .header-lang-btn:hover {
        color: #ffffff;
        background-color: rgba(255,255,255,.2);
    }

.header-lang-btn--active {
    background-color: #ffffff;
    color: #343a40;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.dropdown-lang-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
}

.dropdown-lang-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

    .dropdown-lang-label i {
        font-size: 14px;
    }

.dropdown-lang-options {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #f1f3f5;
    border-radius: 20px;
    padding: 3px;
}

.dropdown-lang-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    color: #6c757d;
    transition: all .2s ease;
    letter-spacing: .03em;
}

    .dropdown-lang-btn:hover {
        color: #343a40;
        background-color: #dee2e6;
    }

.dropdown-lang-btn--active {
    background-color: #ffffff;
    color: #343a40;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ── Language globe selector (structural) ──────────────────── */
.lp-lang-wrap {
    position: relative;
}

.lp-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 13px 6px 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .03em;
    transition: border-color .2s, background .2s, color .2s;
}

    .lp-lang-btn:hover, .lp-lang-btn.open {
        border-color: #fff;
        color: #fff;
        background: rgba(255,255,255,.19);
    }

.lp-lang-globe {
    font-size: 14px;
    animation: globeSpin 10s linear infinite;
}

@keyframes globeSpin {
    to {
        transform: rotate(360deg);
    }
}

.lp-lang-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.lp-lang-chevron {
    font-size: 9px;
    opacity: .6;
    transition: transform .22s ease;
}

.lp-lang-btn.open .lp-lang-chevron {
    transform: rotate(180deg);
}

.lp-lang-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1.5px solid #e8edf2;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
    min-width: 175px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 9999;
}

    .lp-lang-dropdown::before {
        content: '';
        position: absolute;
        bottom: -7px;
        right: 14px;
        width: 12px;
        height: 12px;
        background: #fff;
        border-bottom: 1.5px solid #e8edf2;
        border-right: 1.5px solid #e8edf2;
        transform: rotate(45deg);
    }

html[dir="rtl"] .lp-lang-dropdown {
    right: auto;
    left: 0;
}

    html[dir="rtl"] .lp-lang-dropdown::before {
        right: auto;
        left: 14px;
    }

.lp-lang-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.lp-lang-drop-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px 5px;
    font-size: 11px;
    font-weight: 700;
    opacity: .55;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.lp-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: background .12s;
}

    .lp-lang-item:hover {
        text-decoration: none;
    }

.lp-lang-name {
    flex: 1;
}

.lp-lang-check {
    font-size: 13px;
    margin-inline-start: auto;
}

/* ── Toggle switch (login page) ────────────────────────────── */
.switches-container {
    width: 16rem;
    position: relative;
    display: flex;
    padding: 0;
    line-height: 3rem;
    border-radius: 3rem;
    margin-left: auto;
    margin-right: auto;
    border: solid thin var(--theme);
}

    .switches-container input {
        visibility: hidden;
        position: absolute;
        top: 0;
    }

    .switches-container label {
        width: 50%;
        padding: 0;
        margin: 0;
        text-align: center;
        cursor: pointer;
    }

.switch-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    padding: .15rem;
    z-index: 3;
    transition: transform .5s cubic-bezier(.77,0,.175,1);
}

.switch {
    border-radius: 3rem;
    height: 100%;
}

    .switch div {
        width: 100%;
        text-align: center;
        opacity: 0;
        display: block;
        transition: opacity .2s cubic-bezier(.77,0,.175,1) .125s;
        will-change: opacity;
        position: absolute;
        top: 0;
        left: 0;
    }

.switches-container input:nth-of-type(1):checked ~ .switch-wrapper {
    transform: translateX(0%);
}

.switches-container input:nth-of-type(2):checked ~ .switch-wrapper {
    transform: translateX(100%);
}

html[dir="rtl"] .switches-container input:nth-of-type(1):checked ~ .switch-wrapper {
    transform: translateX(0%);
}

html[dir="rtl"] .switches-container input:nth-of-type(2):checked ~ .switch-wrapper {
    transform: translateX(-100%);
}

.switches-container input:nth-of-type(1):checked ~ .switch-wrapper .switch div:nth-of-type(1) {
    opacity: 1;
}

.switches-container input:nth-of-type(2):checked ~ .switch-wrapper .switch div:nth-of-type(2) {
    opacity: 1;
}

/* ── Drop-in animation ─────────────────────────────────────── */
.drop-in {
    animation: drop-in 1s ease 200ms backwards;
}

.drop-in-2 {
    animation: drop-in 1200ms ease 500ms backwards;
}

@keyframes drop-in {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translate(0px);
    }
}
