/* =====================================================================
   MultiAirlines – sign-in pages (Login, ForgotPassword, ResetPassword)
   ===================================================================== */

body.ma-auth {
    --ma-blue: #105e8e;
    --ma-blue-dark: #0b4566;
    --ma-blue-soft: #e8f1f7;
    --ma-orange: #ff7e02;
    --ma-ink: #15283a;
    --ma-muted: #5f7488;
    --ma-line: #dbe5ed;
    margin: 0;
    min-height: 100vh;
    background: #f3f7fa !important;
    font-family: 'Figtree', 'Open Sans', sans-serif;
    color: var(--ma-ink);
}

body.ma-auth .app-content,
body.ma-auth .content-wrapper,
body.ma-auth .content-body {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.ma-auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 46%) 1fr;
    min-height: 100vh;
}

/* ---------- brand panel ---------- */
.ma-auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background:
        radial-gradient(600px 420px at 110% 0%, rgba(255, 126, 2, .35), transparent 60%),
        radial-gradient(520px 520px at -20% 110%, rgba(255, 255, 255, .12), transparent 60%),
        linear-gradient(160deg, #1271a8 0%, #105e8e 45%, #0a3f5e 100%);
}
.ma-auth-brand::before,
.ma-auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    pointer-events: none;
}
.ma-auth-brand::before { width: 520px; height: 520px; right: -220px; bottom: -160px; }
.ma-auth-brand::after { width: 340px; height: 340px; right: -130px; bottom: -70px; border-color: rgba(255, 255, 255, .18); }

.ma-auth-plane {
    position: absolute;
    right: 56px;
    top: 120px;
    font-size: 120px;
    color: rgba(255, 255, 255, .07);
    transform: rotate(-20deg);
    pointer-events: none;
}

.ma-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    backdrop-filter: blur(6px);
}
.ma-auth-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ma-orange);
    box-shadow: 0 0 0 4px rgba(255, 126, 2, .25);
}

.ma-auth-brand h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -.6px;
    color: #fff;
    margin: 22px 0 14px;
    max-width: 460px;
}
.ma-auth-brand h1 span { color: #ffb066; }
.ma-auth-brand .lead {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    max-width: 440px;
    margin-bottom: 30px;
}

.ma-auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    max-width: 420px;
}
.ma-auth-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}
.ma-auth-points i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 15px;
}

.ma-auth-stats {
    display: flex;
    gap: 34px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    max-width: 460px;
}
.ma-auth-stats strong {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
}
.ma-auth-stats span {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

.ma-auth-brand-foot {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}
.ma-auth-brand-foot a { color: #fff; font-weight: 600; }

/* ---------- form side ---------- */
.ma-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(16, 94, 142, .07), transparent 60%),
        #f6f9fb;
}

.ma-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(16, 94, 142, .08);
    border-radius: 22px;
    padding: 40px 36px 32px;
    box-shadow: 0 1px 2px rgba(16, 94, 142, .04), 0 18px 50px rgba(16, 94, 142, .10);
}

.ma-auth-logo {
    height: 38px;
    width: auto;
    margin-bottom: 28px;
}
.ma-auth-card h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.3px;
    color: var(--ma-ink);
    margin: 0 0 6px;
}
.ma-auth-sub {
    color: var(--ma-muted);
    font-size: 15px;
    margin-bottom: 26px;
}
.ma-auth-card p.text-muted {
    color: var(--ma-muted) !important;
    text-align: left !important;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* inputs with icon */
.ma-auth-card fieldset.form-group {
    position: relative;
    margin-bottom: 16px;
}
.ma-auth-card .form-control {
    height: 50px;
    border: 1px solid var(--ma-line) !important;
    border-radius: 12px !important;
    background: #fbfcfd;
    font-size: 15px;
    color: var(--ma-ink);
    padding-left: 46px !important;
    padding-right: 46px;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ma-auth-card .form-control::placeholder { color: #9aacbb; }
.ma-auth-card .form-control:focus {
    background: #fff;
    border-color: var(--ma-blue) !important;
    box-shadow: 0 0 0 4px rgba(16, 94, 142, .12) !important;
}
.ma-auth-card .has-icon-left .form-control-position {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #8aa0b2;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}
.ma-auth-card .has-icon-left .form-control:focus ~ .form-control-position { color: var(--ma-blue); }

.ma-pw-toggle {
    position: absolute;
    right: 6px;
    top: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8aa0b2;
    cursor: pointer;
    z-index: 3;
}
.ma-pw-toggle:hover { background: var(--ma-blue-soft); color: var(--ma-blue); }

/* links + buttons */
.ma-auth-card .card-link,
.ma-auth-card a.card-link {
    color: var(--ma-blue);
    font-weight: 600;
    font-size: 14px;
}
.ma-auth-card .form-group.text-right { margin: -4px 0 18px; }

.ma-auth-card .btn {
    height: 50px;
    border-radius: 12px !important;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background .15s, box-shadow .15s, transform .1s;
}
.ma-auth-card .btn:active { transform: translateY(1px); }
.ma-auth-card .btn + .btn,
.ma-auth-card .btn-block + .btn-block { margin-top: 12px; }

.ma-auth-card .btn-outline-info,
.ma-auth-card .btn-primary {
    background: var(--ma-blue) !important;
    border: 1px solid var(--ma-blue) !important;
    color: #fff !important;
}
.ma-auth-card .btn-outline-info:hover,
.ma-auth-card .btn-primary:hover {
    background: var(--ma-blue-dark) !important;
    border-color: var(--ma-blue-dark) !important;
    box-shadow: 0 8px 20px rgba(16, 94, 142, .28);
}
.ma-auth-card .btn-outline-info:disabled { opacity: .7; }

.ma-auth-card .btn-outline-success,
.ma-auth-card .btn-outline-secondary {
    background: #fff !important;
    border: 1px solid var(--ma-line) !important;
    color: var(--ma-ink) !important;
}
.ma-auth-card .btn-outline-success:hover,
.ma-auth-card .btn-outline-secondary:hover {
    background: #f4f8fb !important;
    border-color: #c9d7e2 !important;
}

.ma-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #9aacbb;
    font-size: 13px;
}
.ma-auth-divider::before,
.ma-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ma-line);
}

.ma-auth-card .alert {
    border: 0;
    border-radius: 12px;
    font-size: 14px;
}
.ma-auth-card .alert-danger { background: #fdecec; color: #b42323; }

.ma-auth-help {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #edf2f6;
    text-align: center;
    color: var(--ma-muted);
    font-size: 14px;
}
.ma-auth-help a { color: var(--ma-orange); font-weight: 700; }

.ma-auth-mobile-foot { display: none; }

#toast-container > div {
    border-radius: 12px;
    opacity: 1;
    box-shadow: 0 10px 30px rgba(11, 69, 102, .2);
}
.swal2-popup { border-radius: 18px !important; font-family: 'Figtree', sans-serif !important; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .ma-auth-shell { grid-template-columns: 1fr; }
    .ma-auth-brand { display: none; }
    .ma-auth-main { min-height: 100vh; flex-direction: column; }
    .ma-auth-mobile-foot {
        display: block;
        margin-top: 18px;
        font-size: 12.5px;
        color: #9aacbb;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .ma-auth-main { padding: 24px 14px; }
    .ma-auth-card { padding: 30px 22px 24px; border-radius: 18px; }
    .ma-auth-card h2 { font-size: 23px; }
}


/* ---------- GLASS: sign-in card over a soft backdrop ---------- */
.ma-auth-main {
    background:
        radial-gradient(520px 420px at 85% 10%, rgba(255, 126, 2, .16), transparent 62%),
        radial-gradient(620px 520px at 10% 90%, rgba(16, 94, 142, .20), transparent 62%),
        radial-gradient(480px 380px at 60% 55%, rgba(26, 127, 189, .12), transparent 62%),
        linear-gradient(160deg, #eef5fa 0%, #e6eff6 60%, #f4efe9 100%);
}
.ma-auth-card {
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .8);
    backdrop-filter: saturate(170%) blur(20px);
    -webkit-backdrop-filter: saturate(170%) blur(20px);
    box-shadow: 0 1px 1px rgba(255, 255, 255, .7) inset, 0 20px 60px rgba(16, 94, 142, .16);
}
.ma-auth-card .form-control { background: rgba(255, 255, 255, .78); }
.ma-auth-eyebrow,
.ma-auth-points i {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ma-auth-stats {
    padding: 22px 24px 20px;
    margin-top: 32px;
    border-top: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 480px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ma-auth-card { background: #fff; }
}
