/* ============================================
   MLM Property - Login Page Styles
   Theme: Navy + Gold (Premium Real Estate)
   ============================================ */

:root {
    --navy-darkest: #081a2b;
    --navy-dark:    #0c2233;
    --navy:         #123a5c;
    --navy-light:   #1b567f;
    --gold:         #e8b64c;
    --gold-dark:    #d9a63e;
    --text-dark:    #22303e;
    --text-muted:   #7b8794;
    --bg-soft:      #f6f8fb;
    --border:       #e3e9f0;
    --danger:       #e74c3c;
    --success:      #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.brand-panel {
    flex: 1.15;
    position: relative;
    display: flex;
    align-items: center;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(232,182,76,.14), transparent 55%),
        linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #16466b 100%);
    overflow: hidden;
    padding: 60px;
}

.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 24px;
    background:
        radial-gradient(700px 400px at 110% 110%, rgba(18,58,92,.06), transparent 60%),
        var(--bg-soft);
}

/* ---------- Floating shapes ---------- */
.shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.shape-1 {
    width: 320px; height: 320px;
    border: 40px solid rgba(255,255,255,.04);
    top: -110px; right: -80px;
}
.shape-2 {
    width: 190px; height: 190px;
    background: rgba(232,182,76,.09);
    bottom: 14%; left: -70px;
    animation: floatY 7s ease-in-out infinite;
}
.shape-3 {
    width: 90px; height: 90px;
    background: rgba(255,255,255,.05);
    top: 18%; left: 12%;
    animation: floatY 5.5s ease-in-out infinite reverse;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-22px); }
}

/* ---------- Brand panel content ---------- */
.brand-inner { position: relative; z-index: 2; max-width: 520px; }

.brand-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 46px;
    line-height: 0;
}
.brand-logo-img, .mobile-logo-img {
    display: block;
    width: auto;
    border-radius: 10px;
}
.brand-logo-img { height: 175px; }
.mobile-logo-img { height: 175px; }

.brand-title {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.18;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeUp .8s ease both;
}
.brand-title span { color: var(--gold); }

.brand-sub {
    color: rgba(255,255,255,.72);
    font-size: 15.5px;
    line-height: 1.75;
    max-width: 430px;
    margin-bottom: 44px;
    animation: fadeUp .8s .15s ease both;
}

.brand-stats {
    display: flex;
    gap: 42px;
    animation: fadeUp .8s .3s ease both;
}
.stat h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--gold);
    font-size: 28px;
    font-weight: 700;
}
.stat span {
    color: rgba(255,255,255,.62);
    font-size: 13px;
    letter-spacing: .3px;
}

.skyline {
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* ---------- Login card ---------- */
.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px;
    padding: 46px 42px 30px;
    box-shadow: 0 24px 70px rgba(10,31,51,.14);
    animation: cardIn .7s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(26px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.mobile-logo {
    display: none;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 26px;
}



.login-head { margin-bottom: 30px; }
.login-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--navy-darkest);
}
.login-head p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-top: 5px;
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 11px;
    font-size: 13.8px;
    margin-bottom: 22px;
}
.alert-danger  { background: #fdf0ee; color: #b03428; border: 1px solid #f6d3cd; }
.alert-success { background: #eefaf2; color: #1d8348; border: 1px solid #cdeeda; }
.alert i { font-size: 16px; }

.shake { animation: shake .45s ease; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/* ---------- Fields ---------- */
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrap { position: relative; }
.input-wrap > i {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: #9aa8b5;
    font-size: 15px;
    transition: color .25s;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 46px;
    font: 500 14.5px 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-soft);
    border: 1.6px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.input-wrap input::placeholder { color: #aab6c2; }

.input-wrap input:focus {
    border-color: var(--navy-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27,86,127,.12);
}
.input-wrap input:focus ~ i,
.input-wrap:focus-within > i { color: var(--navy-light); }

.toggle-pass {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: #9aa8b5;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.toggle-pass:hover { background: #eef2f7; color: var(--navy); }

/* ---------- Row: remember / forgot ---------- */
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.remember input { display: none; }
.remember .box {
    width: 18px; height: 18px;
    border: 1.8px solid #c3cedb;
    border-radius: 5px;
    display: grid; place-items: center;
    transition: all .2s;
}
.remember .box::after {
    content: '\2713';
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(.4);
    transition: all .18s;
}
.remember input:checked + .box {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
}
.remember input:checked + .box::after { opacity: 1; transform: scale(1); }

.forgot {
    font-size: 13.5px;
    color: var(--navy-light);
    text-decoration: none;
    font-weight: 600;
}
.forgot:hover { color: var(--gold-dark); }

/* ---------- Login button ---------- */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    box-shadow: 0 12px 26px rgba(18,58,92,.35);
    transition: transform .2s, box-shadow .2s, filter .2s;
    display: grid;
    place-items: center;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(18,58,92,.42);
    filter: brightness(1.07);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .75; cursor: not-allowed; transform: none; }

.btn-login span[hidden] { display: none !important; }
.btn-loading:not([hidden]) { display: flex; align-items: center; gap: 10px; }

/* ---------- Section title (member form) ---------- */
.sec-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 700; letter-spacing: .5px;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(18,58,92,.07), rgba(232,182,76,.10));
    border-left: 4px solid var(--gold);
    padding: 8px 14px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0 10px;
}

/* ---------- Plot Inventory highlight button (below login card) ---------- */
.plot-inv-box {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid rgba(18,58,92,.14);
    border-radius: 18px;
    padding: 14px 16px 12px;
    box-shadow: 0 14px 34px rgba(10,31,51,.10);
    animation: cardIn .7s cubic-bezier(.2,.7,.3,1) both;
    animation-delay: .12s;
}
.btn-plot-inventory {
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    padding: 13px 17px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-darkest);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 22px rgba(217,166,62,.45);
    transition: all .2s ease;
}
.btn-plot-inventory .pi-icon {
    flex: 0 0 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(8,26,43,.14);
    color: #fff;
    font-size: 18px;
}
.btn-plot-inventory b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: .2px; }
.btn-plot-inventory .pi-arrow { margin-left: auto; font-size: 15px; transition: transform .2s; }
.btn-plot-inventory:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(217,166,62,.55);
}
.btn-plot-inventory:hover .pi-arrow { transform: translateX(6px); }

.spinner {
    width: 17px; height: 17px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Demo credentials ---------- */
.demo-box {
    margin-top: 26px;
    background: #fffaf0;
    border: 1.4px dashed #ecd39a;
    border-radius: 13px;
    padding: 15px 18px;
    text-align: center;
}
.demo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #96700f;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 9px;
}
.demo-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.demo-grid code {
    background: #fff;
    border: 1px solid #f0e2bc;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #7a5d10;
    cursor: pointer;
    transition: all .2s;
}
.demo-grid code:hover { border-color: var(--gold-dark); background: #fffdf6; }

.login-foot {
    margin-top: 26px;
    text-align: center;
    font-size: 12.5px;
    color: #a5b1bd;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .login-wrapper { flex-direction: column-reverse; }
    .brand-panel {
        flex: none;
        padding: 46px 30px 0;
        min-height: auto;
    }
    .brand-logo { margin-bottom: 26px; }
    .brand-sub { margin-bottom: 30px; }
    .brand-stats { gap: 30px; margin-bottom: 10px; }
    .skyline { position: relative; margin-top: 10px; }
    .form-panel { padding: 34px 20px 50px; }
    .login-card { padding: 38px 28px 26px; }
    .mobile-logo { display: flex; }
}
