/* ==========================================================
   MALEBBI LOGIN - PREMIUM UI
   Presentation only. Authentication logic remains in login.php.
========================================================== */

:root {
    --primary: #008b8b;
    --primary-dark: #006f70;
    --primary-deep: #075b61;
    --accent: #20b7b2;
    --navy: #102d3a;
    --text: #1c2933;
    --muted: #6b7b86;
    --border: #dce6e9;
    --surface: #ffffff;
    --soft: #f3f8f8;
    --bg: #edf4f5;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(32, 183, 178, .12), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(0, 139, 139, .10), transparent 30%),
        linear-gradient(135deg, #f8fbfb 0%, var(--bg) 52%, #e8f2f3 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.48) 42.1% 42.5%, transparent 42.6%),
        linear-gradient(300deg, transparent 0 70%, rgba(255,255,255,.35) 70.1% 70.5%, transparent 70.6%);
    opacity: .7;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px;
    position: relative;
    z-index: 1;
}

.login-box {
    width: min(1120px, 100%);
    min-height: 650px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    box-shadow:
        0 30px 80px rgba(17, 54, 62, .14),
        0 8px 25px rgba(17, 54, 62, .07);
    backdrop-filter: blur(12px);
}

/* ==========================================================
   LEFT BRAND PANEL
========================================================== */

.login-left {
    width: 50%;
    padding: 54px 62px 42px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 78% 18%, rgba(72, 224, 217, .22), transparent 28%),
        radial-gradient(circle at 20% 85%, rgba(0, 0, 0, .12), transparent 32%),
        linear-gradient(145deg, #006f70 0%, #008b8b 46%, #075b61 100%);
}

.login-left::before,
.login-left::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-left::before {
    width: 330px;
    height: 330px;
    right: -160px;
    top: -135px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        0 0 0 34px rgba(255,255,255,.035),
        0 0 0 68px rgba(255,255,255,.025);
}

.login-left::after {
    width: 210px;
    height: 210px;
    left: -130px;
    bottom: -120px;
    background: rgba(255,255,255,.045);
}

.brand-top,
.brand-content,
.brand-footer {
    position: relative;
    z-index: 2;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    padding: 5px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
}

.brand-mark img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.35px;
    opacity: .94;
}

.brand-caption {
    margin-top: 4px;
    font-size: 12px;
    opacity: .75;
}

.brand-content {
    max-width: 475px;
    margin-top: 35px;
}

.brand-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.login-left h1 {
    margin: 18px 0 3px;
    font-size: clamp(46px, 5vw, 64px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -2px;
}

.login-left h2 {
    margin: 0 0 19px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(255,255,255,.94);
}

.login-left p {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255,255,255,.82);
}

.feature-list {
    margin-top: 30px;
    display: grid;
    gap: 13px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.92);
}

.feature-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    background: rgba(255,255,255,.09);
}

.feature-icon i {
    font-size: 13px;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 25px;
    font-size: 11px;
    color: rgba(255,255,255,.68);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #79f0c7;
    box-shadow: 0 0 0 4px rgba(121,240,199,.13);
}

/* ==========================================================
   RIGHT LOGIN PANEL
========================================================== */

.login-right {
    width: 50%;
    padding: 32px 62px 34px;
    background: rgba(255,255,255,.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-nav {
    min-height: 32px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.login-nav-item {
    position: relative;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.login-nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 99px;
    background: var(--accent);
}

.guide-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #63737d;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.guide-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.guide-link i {
    margin-right: 5px;
}

.login-header {
    text-align: center;
}

.login-logo-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
    padding: 7px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #f4fbfb, #e6f4f4);
    border: 1px solid #d8ebeb;
    box-shadow: 0 10px 25px rgba(0, 112, 113, .09);
}

.login-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.login-title {
    color: var(--navy);
    font-size: 29px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.6px;
}

.login-subtitle {
    max-width: 380px;
    margin: 8px auto 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.login-subtitle strong {
    color: var(--primary);
}

.login-form {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.form-label {
    margin-bottom: 8px;
    color: #31434d;
    font-size: 12px;
    font-weight: 800;
}

.login-input {
    min-height: 52px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-input:focus-within {
    border-color: rgba(0,139,139,.65);
    box-shadow: 0 0 0 4px rgba(0,139,139,.08);
}

.input-group-text {
    min-width: 50px;
    justify-content: center;
    border: 0 !important;
    background: transparent;
    color: var(--primary);
}

.login-input .form-control {
    height: 50px;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 2px;
    color: var(--text);
    font-size: 13px;
    background: transparent;
}

.login-input .form-control::placeholder {
    color: #a7b2b8;
}

.password-toggle {
    width: 48px;
    border: 0;
    background: transparent;
    color: #82919a;
    cursor: pointer;
    transition: color .2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.remember-row {
    margin: 1px 0 21px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-row .form-check-input {
    width: 15px;
    height: 15px;
    margin-top: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-row .form-check-label {
    color: #65747d;
    font-size: 12px;
    cursor: pointer;
}

.btn-login {
    height: 53px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, #009f9b 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 10px 22px rgba(0,139,139,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-login:hover {
    color: #fff;
    filter: brightness(.97);
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(0,139,139,.27);
}

.btn-login:active {
    transform: translateY(0);
}

.login-help {
    text-align: center;
    margin-top: 18px;
}

.guide-link-bottom {
    color: var(--primary);
    font-size: 12px;
}

.login-footer {
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid #edf1f2;
    text-align: center;
    color: #91a0a7;
    font-size: 10px;
    line-height: 1.75;
}

.login-footer strong {
    display: block;
    color: #6f8088;
    font-size: 10px;
}

/* ==========================================================
   ALERT
========================================================== */

.login-alert {
    max-width: 430px;
    width: 100%;
    margin: 0 auto 16px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    border-radius: 12px;
    font-size: 12px;
}

.login-alert i {
    margin-top: 2px;
}

/* ==========================================================
   GUIDE MODAL
========================================================== */

body.guide-open {
    overflow: hidden;
}

.guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 35, 42, .58);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.guide-overlay.show {
    opacity: 1;
    visibility: visible;
}

.guide-modal {
    width: min(700px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 31px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.24);
    transform: translateY(10px) scale(.985);
    transition: transform .2s ease;
}

.guide-overlay.show .guide-modal {
    transform: translateY(0) scale(1);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf1f2;
}

.guide-kicker {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.guide-header h2 {
    margin: 6px 0 5px;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
}

.guide-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.guide-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #e1e9eb;
    border-radius: 12px;
    background: #f7fafa;
    color: #71828a;
    cursor: pointer;
}

.guide-close:hover {
    color: var(--primary);
    border-color: #b9dede;
}

.guide-steps {
    padding-top: 20px;
    display: grid;
    gap: 12px;
}

.guide-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e8eff0;
    border-radius: 15px;
    background: #fbfdfd;
}

.step-number {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e6f5f5;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.guide-step strong {
    display: block;
    margin: 2px 0 4px;
    color: #30434d;
    font-size: 13px;
}

.guide-step p {
    margin: 0;
    color: #71818a;
    font-size: 12px;
    line-height: 1.6;
}

.guide-note {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #f0f8f8;
    color: #547078;
    font-size: 11px;
    line-height: 1.6;
}

.guide-note i {
    margin-top: 2px;
    color: var(--primary);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
    .login-wrapper {
        padding: 20px;
    }

    .login-box {
        min-height: auto;
        flex-direction: column;
        max-width: 650px;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        min-height: 390px;
        padding: 38px 42px;
    }

    .login-right {
        padding: 34px 42px 30px;
    }

    .brand-content {
        margin-top: 25px;
    }

    .feature-list {
        margin-top: 22px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 10px;
    }

    .login-box {
        border-radius: 22px;
    }

    .login-left {
        min-height: 350px;
        padding: 28px 25px;
    }

    .login-right {
        padding: 24px 22px 25px;
    }

    .brand-top {
        gap: 10px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .brand-mark img {
        width: 36px;
        height: 36px;
    }

    .brand-eyebrow {
        font-size: 8px;
    }

    .brand-caption {
        font-size: 10px;
    }

    .login-left h1 {
        font-size: 45px;
    }

    .login-left h2 {
        font-size: 15px;
    }

    .login-left p {
        font-size: 12px;
        line-height: 1.7;
    }

    .feature-item {
        font-size: 11px;
    }

    .login-nav {
        margin-bottom: 14px;
    }

    .login-title {
        font-size: 25px;
    }

    .guide-modal {
        padding: 22px;
        border-radius: 20px;
    }

    .guide-header h2 {
        font-size: 20px;
    }
}
