/* login.css */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #04294d;
    --navy-deep: #021d38;
    --navy-mid: #0a3b66;
    --accent: #3eabf0;
    --accent-glow: rgba(62, 171, 240, .35);
    --gold: #e8a020;
    --gold-glow: rgba(232, 160, 32, .3);
    --text: #1a1d2e;
    --text-2: #5c6278;
    --text-3: #9aa0b4;
    --border: #e5e8ef;
    --card: #ffffff;
    --bg: #f0f2f6;
    --red: #dc2626;
    --green: #27ae60;
    --radius: 14px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: .18s cubic-bezier(.4, 0, .2, 1);
}

html,
body {
    height: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    background: var(--navy-deep);
    overflow: hidden;
}

/* ══════════════════════════════════════
   LAYOUT WRAPPER
══════════════════════════════════════ */
.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ══════════════════════════════════════
   BRAND PANEL (Left)
══════════════════════════════════════ */
.brand-panel {
    flex: 0 0 48%;
    position: relative;
    background: var(--navy);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background */
.bp-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    animation: orbFloat 8s ease-in-out infinite;
}

.bp-orb-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(62, 171, 240, .45) 0%, transparent 70%);
    top: -100px;
    left: -80px;
    animation-duration: 9s;
}

.bp-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 160, 32, .35) 0%, transparent 70%);
    bottom: 40px;
    right: -60px;
    animation-duration: 11s;
    animation-delay: -3s;
}

.bp-orb-3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(10, 59, 102, .8) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 7s;
    animation-delay: -1.5s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.06);
    }
}

.bp-orb-3 {
    animation-name: orbFloat3;
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -55%) scale(1.1);
    }
}

/* Subtle grid overlay */
.bp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(62, 171, 240, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 171, 240, .06) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Content */
.bp-content {
    position: relative;
    z-index: 2;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    animation: slideFromLeft .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo */
.bp-logo-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
}

.bp-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
    display: grid;
    place-items: center;
     
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    letter-spacing: .04em;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(62, 171, 240, .35), 0 2px 8px rgba(0, 0, 0, .3);
}

.bp-logo-ring {
    position: absolute;
    inset: -5px;
    border-radius: 22px;
    border: 1.5px solid rgba(62, 171, 240, .3);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: .3;
        transform: scale(1);
    }

    50% {
        opacity: .7;
        transform: scale(1.04);
    }
}

.bp-brand-name {
     
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: .01em;
    line-height: 1.2;
}

.bp-brand-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 3px;
    margin-bottom: 28px;
}

.bp-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 99px;
    margin-bottom: 28px;
}

.bp-headline {
     
    font-weight: 800;
    font-size: 42px;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.bp-headline span {
    background: linear-gradient(90deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bp-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.65;
    max-width: 340px;
    margin-bottom: 36px;
}

/* Stats */
.bp-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(8px);
}

.bp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.bp-stat-val {
     
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    line-height: 1;
}

.bp-stat-key {
    font-size: 10px;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.bp-stat-sep {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, .12);
    margin: 0 16px;
}

/* Badge */
.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(39, 174, 96, .12);
    border: 1px solid rgba(39, 174, 96, .25);
    color: #5ddb90;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
}

.bp-badge i {
    font-size: 13px;
}

/* Floating Cards */
.fp-card {
    position: absolute;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.fp-card-1 {
    bottom: 120px;
    right: -20px;
    animation-delay: -2s;
}

.fp-card-2 {
    top: 80px;
    right: 20px;
    animation-delay: -4s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fp-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fp-card-title {
    font-size: 10px;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.fp-card-val {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
     
}

/* ══════════════════════════════════════
   FORM PANEL (Right)
══════════════════════════════════════ */
.form-panel {
    flex: 1;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 24px;
}

.form-inner {
    width: 100%;
    max-width: 420px;
    animation: slideFromRight .7s .1s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    background: rgba(62, 171, 240, .08);
    border: 1px solid rgba(62, 171, 240, .2);
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 22px;
}

.form-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.form-title {
     
    font-weight: 800;
    font-size: 34px;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.form-sub {
    font-size: 13.5px;
    color: var(--text-3);
    margin-bottom: 36px;
}

/* ── Field Groups ── */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: .03em;
    margin-bottom: 7px;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-3);
    pointer-events: none;
    transition: color var(--transition);
}

.field-input {
    width: 100%;
    padding: 11px 42px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field-input::placeholder {
    color: var(--text-3);
}

.field-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(62, 171, 240, .12);
}

.field-wrap:focus-within .field-icon {
    color: var(--accent);
}

/* Validation states */
.field-group.is-valid .field-input {
    border-color: var(--green);
}

.field-group.is-invalid .field-input {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.field-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: 15px;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.field-group.is-valid .field-status {
    opacity: 1;
}

.field-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition);
    line-height: 1;
}

.field-eye:hover {
    color: var(--text);
}

.field-err {
    font-size: 11.5px;
    color: var(--red);
    margin-top: 5px;
    min-height: 16px;
    font-weight: 500;
}

/* ── Meta Row ── */
.form-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 8px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text-2);
    user-select: none;
}

.check-input {
    display: none;
}

.check-box {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.check-box::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
    transition: opacity var(--transition);
}

.check-input:checked+.check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.check-input:checked+.check-box::after {
    opacity: 1;
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.forgot-link:hover {
    color: var(--navy-mid);
}

/* ── Submit Button ── */
.btn-login {
    width: 100%;
    padding: 13px 20px;
    background: var(--navy-mid);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: .01em;
    margin-bottom: 28px;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy-mid) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(10, 59, 102, .35);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login>* {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 16px;
    transition: transform var(--transition);
}

.btn-login:hover .btn-arrow {
    transform: translateX(4px);
}

/* Loading state */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-login.loading .btn-spinner {
    display: block;
}

.btn-login.loading #btnLoginText {
    display: none;
}

.btn-login.loading .btn-arrow {
    display: none;
}

.btn-login.loading {
    pointer-events: none;
    opacity: .85;
}

/* ── Or Divider ── */
.form-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.form-or span:first-child,
.form-or span:last-child {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.or-text {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Demo Account Buttons ── */
.demo-accounts {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.demo-btn {
    flex: 1;
    padding: 9px 8px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
}

.demo-btn i {
    font-size: 16px;
    color: var(--text-3);
    transition: color var(--transition);
}

.demo-btn:hover {
    border-color: var(--accent);
    background: rgba(62, 171, 240, .05);
    color: var(--text);
}

.demo-btn:hover i {
    color: var(--accent);
}

/* ── Footer ── */
.form-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-3);
    flex-wrap: wrap;
}

.footer-sep {
    color: var(--border);
}

.footer-link {
    color: var(--text-3);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

/* ── Toast ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 17px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-family: var(--font-body);
    animation: toastIn .25s cubic-bezier(.22, 1, .36, 1) both;
    min-width: 240px;
    max-width: 320px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast i {
    font-size: 17px;
    flex-shrink: 0;
}

.toast.success i {
    color: var(--green);
}

.toast.error i {
    color: var(--red);
}

.toast.info i {
    color: var(--accent);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .brand-panel {
        flex: 0 0 42%;
    }

    .bp-headline {
        font-size: 34px;
    }

    .fp-card-2 {
        display: none;
    }
}

@media (max-width: 700px) {

    html,
    body {
        overflow: auto;
    }

    .login-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .brand-panel {
        flex: none;
        height: 220px;
        padding: 0;
    }

    .bp-content {
        padding: 28px 28px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }

    .bp-brand-name,
    .bp-brand-sub,
    .bp-divider,
    .bp-headline,
    .bp-desc,
    .bp-stats,
    .bp-badge {
        display: none;
    }

    .bp-logo-wrap {
        margin-bottom: 0;
    }

    .fp-card {
        display: none;
    }

    .form-panel {
        flex: none;
        padding: 36px 24px 48px;
    }

    .form-inner {
        max-width: 100%;
    }
}