/* ==========================================================================
   Shared authentication pages styling (login, forgot, reset, tfa)
   ========================================================================== */
:root {
    --brand-1: #30b8e8;
    --brand-2: #286090;
    --accent: #30b8e8;
    --accent-dark: #286090;
    --panel-dark: #23262e;
    --panel-dark-2: #1b1d24;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    background: radial-gradient(1200px 600px at 10% 10%, #dff5fc 0%, transparent 55%),
                radial-gradient(1000px 500px at 90% 90%, #d8f2fb 0%, transparent 50%),
                linear-gradient(135deg, #eef9fd 0%, #f4f6fb 100%);
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}
/* soft floating blobs for depth */
body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    z-index: 0;
}
body::before { width: 340px; height: 340px; top: -80px; left: -60px;
    background: radial-gradient(circle, var(--brand-1), transparent 70%); }
body::after { width: 380px; height: 380px; bottom: -100px; right: -80px;
    background: radial-gradient(circle, #90d0e8, transparent 70%); }

/* Full-page slider background sitting behind the whole login card. */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image .6s ease-in-out;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 940px;
    background: var(--panel-dark);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(40, 10, 30, .35);
    animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.login-row { display: flex; min-height: 540px; }

/* ---------- LEFT (brand) ---------- */
.brand-side {
    position: relative;
    flex: 0 0 44%;
    color: #fff;
    padding: 56px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(150deg, var(--brand-1) 0%, var(--brand-2) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.brand-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 14px rgba(0,0,0,.42);
}
.brand-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image .6s ease-in-out;
}
.brand-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(150deg, rgba(8,24,36,.30) 0%, rgba(40,96,144,.58) 56%, rgba(12,35,56,.72) 100%),
        radial-gradient(circle at 20% 18%, rgba(48,184,232,.34), transparent 36%);
}
/* angled notch carved toward the dark panel */
.brand-side::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0; right: -40px; bottom: 0;
    width: 80px;
    background: var(--panel-dark);
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 40px 100%, 100% 50%);
}
.brand-side .ring {
    position: absolute; z-index: 2; border: 2px solid rgba(255,255,255,.22); border-radius: 50%;
}
.brand-side .ring.r1 { width: 220px; height: 220px; top: -70px; left: -70px; }
.brand-side .ring.r2 { width: 140px; height: 140px; bottom: -40px; left: 30px; }

.brand-eyebrow {
    text-transform: uppercase; letter-spacing: 4px; font-size: 12px;
    font-weight: 700; opacity: .95; margin-bottom: 18px;
}
.brand-logo {
    width: 84px; height: 84px; border-radius: 20px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.brand-logo img { max-width: 60px; max-height: 60px; border-radius: 12px; }
.brand-logo i { font-size: 38px; color: #fff; }
.brand-side h2 { font-weight: 800; font-size: 28px; margin: 0 0 12px; line-height: 1.2; color: #fff; }
.brand-product { font-size: 15px; font-weight: 700; margin: -4px 0 12px; color: #fff; }
.brand-side p.addr { font-size: 13.5px; opacity: .98; line-height: 1.6; margin: 0 0 28px; max-width: 280px; color: rgba(255,255,255,.96); }
.brand-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,.92);
}
.brand-points li {
    position: relative;
    padding-left: 18px;
}
.brand-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #90d0e8;
    box-shadow: 0 0 0 3px rgba(255,255,255,.14);
}
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: rgba(255,255,255,.16); color: #fff; margin-right: 10px;
    font-size: 15px; transition: .25s; text-decoration: none;
}
.social a:hover { background: #fff; color: var(--brand-2); transform: translateY(-3px); }

/* ---------- RIGHT (form) ---------- */
.form-side {
    flex: 1;
    padding: 52px 54px;
    color: #e7e9ee;
    background: linear-gradient(180deg, var(--panel-dark) 0%, var(--panel-dark-2) 100%);
    display: flex; flex-direction: column; justify-content: center;
}
.form-side .top-logo {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(150deg, var(--brand-1), var(--brand-2));
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.form-side .top-logo img { max-width: 36px; max-height: 36px; border-radius: 8px; }
.form-side .top-logo i { color: #fff; font-size: 24px; }
.form-side h3 { font-weight: 700; font-size: 22px; color: #fff; margin: 0 0 6px; }
.form-side .sub { font-size: 13px; color: #8b909c; margin-bottom: 28px; }

.field { position: relative; margin-bottom: 18px; }
.field .ic {
    position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
    color: #8b909c; font-size: 15px;
}
.field input {
    width: 100%; height: 50px;
    background: #2c303a; border: 1.5px solid #353a45; border-radius: 12px;
    color: #fff; font-size: 14px; padding: 0 44px;
    outline: none; transition: .2s;
}
.field input::placeholder { color: #6f7480; }
.field input:focus { border-color: var(--brand-1); background: #2f333e;
    box-shadow: 0 0 0 4px rgba(48,184,232,.12); }
.field .toggle {
    position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
    color: #8b909c; cursor: pointer; font-size: 15px; background: none; border: 0;
}
.field .toggle:hover { color: #fff; }

.row-meta { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 24px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #b9bdc7; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--brand-1); }
.forgot { font-size: 13px; color: var(--accent); text-decoration: none; }
.forgot:hover { text-decoration: underline; }

.btn-login {
    width: 100%; height: 50px; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .3px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: .25s; box-shadow: 0 12px 24px rgba(48,184,232,.28);
    text-decoration: none;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(48,184,232,.38); color: #fff; }
.btn-login:active { transform: translateY(0); }

.back-link {
    display: block; text-align: center; margin-top: 22px;
    font-size: 13px; color: #8b909c; text-decoration: none;
}
.back-link:hover { color: #fff; }

.foot { text-align: center; font-size: 12px; color: #6f7480; margin-top: 26px; }

.alert { border: 0; border-radius: 12px; font-size: 13.5px; }
.field-error { color: #ff8a95; font-size: 12px; margin-top: 6px; }

@media (max-width: 768px) {
    .brand-side { display: none; }
    .form-side { padding: 44px 30px; }
    .login-row { min-height: auto; }
}
