/* ── Auth ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: #f0f4f8;
    color: #1e293b;
}

/* ── Layout ───────────────────────────────────────────── */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Left Brand Panel ────────────────────────────────── */
.auth-left {
    width: 42%;
    background: linear-gradient(145deg, #0f172a 0%, #1a1a2e 40%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 52px;
    flex-shrink: 0;
}

/* decorative circles */
.auth-left::before {
    content: '';
    position: absolute;
    top: -90px; right: -90px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(77,77,253,.14);
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -110px; left: -110px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(108,143,234,.09);
}
.auth-deco-mid {
    position: absolute;
    bottom: 140px; right: -55px;
    width: 210px; height: 210px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
}
.auth-deco-sm {
    position: absolute;
    top: 38%; right: 68px;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.auth-deco-dots {
    position: absolute;
    top: 60px; left: 40px;
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 10px;
    opacity: .12;
}
.auth-deco-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

/* brand content */
.auth-brand-logo {
    max-width: 70px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    position: relative; z-index: 1;
}
.auth-brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}
.auth-brand-sub {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    margin-bottom: 44px;
    position: relative; z-index: 1;
    max-width: 300px;
}

/* feature list */
.auth-features {
    list-style: none;
    position: relative; z-index: 1;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: rgba(255,255,255,.7);
}
.auth-features li .feat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #fff;
}

/* bottom badge */
.auth-left-footer {
    position: absolute;
    bottom: 28px; left: 52px; right: 52px;
    display: flex; align-items: center; gap: 8px;
    font-size: 11.5px; color: rgba(255,255,255,.3);
    z-index: 1;
}
.auth-left-footer::before {
    content: ''; flex: 1;
    height: 1px; background: rgba(255,255,255,.1);
}

/* ── Right Form Panel ────────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    background: #fff;
    min-height: 100vh;
    animation: fadeInUp .5s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* heading */
.auth-form-heading {
    margin-bottom: 32px;
    text-align: center;
}
.auth-form-heading .auth-form-logo {
    max-width: 62px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none; /* shown only on mobile */
}
.auth-form-heading h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.auth-form-heading p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* alerts */
.auth-alert {
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    border: none;
}
.auth-alert-danger  { background: #fee2e2; color: #991b1b; }
.auth-alert-success { background: #d1fae5; color: #065f46; }
.auth-alert i { font-size: 16px; flex-shrink: 0; }

/* form labels */
.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: .2px;
}

/* input with icon */
.input-icon-wrap {
    position: relative;
    margin-bottom: 18px;
}
.input-icon-wrap .ii-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color .2s;
}
.input-icon-wrap:focus-within .ii-icon { color: #4d4dfd; }

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 44px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    display: block;
}
.auth-input::placeholder { color: #b0bec5; }
.auth-input:focus {
    border-color: #4d4dfd;
    box-shadow: 0 0 0 3px rgba(77,77,253,.1);
    background: #fff;
}
.auth-input.is-invalid { border-color: #ef4444; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.invalid-feedback { font-size: 12px; color: #ef4444; margin-top: 5px; display: block; }

.toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    background: none;
    border: none;
    padding: 0;
    transition: color .2s;
    line-height: 1;
}
.toggle-pwd:hover { color: #4d4dfd; }

/* remember + forgot row */
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}
.auth-remember {
    display: flex; align-items: center; gap: 8px;
    color: #475569; cursor: pointer; user-select: none;
}
.auth-remember input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #4d4dfd;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-forgot {
    color: #4d4dfd;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.auth-forgot:hover { color: #3b2fd9; text-decoration: underline; }

/* submit button */
.auth-btn {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4d4dfd 0%, #6c8fea 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(77,77,253,.35);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover  { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(77,77,253,.38); }
.auth-btn:active { transform: translateY(0); opacity: 1; }

/* divider */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0;
    font-size: 12px; color: #cbd5e1;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* register link */
.auth-register {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}
.auth-register a {
    color: #4d4dfd;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}
.auth-register a:hover { color: #3b2fd9; text-decoration: underline; }

/* right panel footer */
.auth-right-footer {
    margin-top: 40px;
    font-size: 11.5px;
    color: #cbd5e1;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-left { display: none; }
    .auth-right { background: #f0f4f8; }
    .auth-right .auth-form-wrap {
        background: #fff;
        padding: 36px 28px;
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(0,0,0,.08);
    }
    .auth-form-heading .auth-form-logo { display: inline-block; }
}
@media (max-width: 480px) {
    .auth-right .auth-form-wrap { padding: 28px 20px; }
    .auth-brand-title { font-size: 22px; }
}

/* ── Legacy styles (used by register / forgot-password pages) ── */
.logo {
    max-width: 100px;
    border-radius: 12px;
    display: block;
    margin: 0 auto 20px;
}
.card-signin {
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.card-signin .card-body { padding: 1.5rem 2rem; }
.form-signin .form-control,
.form-signup .form-control {
    padding: 11px 16px;
    height: auto;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
}
.form-signin .form-control:focus,
.form-signup .form-control:focus {
    border-color: #4d4dfd;
    box-shadow: 0 0 0 3px rgba(77,77,253,.1);
}
.form-signin .btn,
.form-signup .btn { font-family: 'Poppins', sans-serif; }
.btn-primary {
    background-color: #4d4dfd;
    border-color: #4d4dfd;
}
.btn-primary:hover {
    background-color: #3b2fd9;
    border-color: #3b2fd9;
}
.btn-register {
    display: block;
    text-align: center;
    color: #4d4dfd;
    font-size: 14px;
    margin-top: 10px;
}
.btn-register:hover { color: #3b2fd9; }
.alert-success {
    color: #065f46;
    background-color: #d1fae5;
    border-color: #6ee7b7;
}
select.form-control { height: 50px !important; }
body {
    background: #f0f4f8;
}
.auth-container {
    min-height: 100vh;
}
