*,
*::before,
*::after {
    box-sizing: border-box;
}

body.account-page {
    margin: 0;
    min-height: 100vh;
    background: #0f0c29;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: block !important;
    align-items: unset !important;
}

/* ── split layout ── */
.admin-login-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── left panel (brand) ── */
.login-brand-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-brand-orb-1 {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, .25) 0%, transparent 70%);
    top: -80px;
    right: -80px;
}

.login-brand-orb-2 {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, .18) 0%, transparent 70%);
    bottom: -60px;
    left: -60px;
}

.brand-logo-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s;
}

.brand-logo-link:hover {
    transform: translateY(-2px);
}

.brand-logo-wrap img {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255, 255, 255, .08);
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .12);
}

.brand-logo-fallback {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    box-shadow: 0 8px 32px rgba(108, 99, 255, .4);
}

.brand-name-text {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    margin-top: 16px;
    margin-bottom: 4px;
}

.brand-tagline-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-features {
    position: relative;
    z-index: 1;
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-feature-text h6 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}

.brand-feature-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    margin: 0;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    text-align: center;
}

/* ── right panel (form) ── */
.login-form-panel {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 56px 48px;
    background: #fff;
    position: relative;
}

.login-form-inner {
    width: 100%;
    max-width: 380px;
}

.login-greeting {
    margin-bottom: 36px;
}

.login-greeting h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -.5px;
}

.login-greeting p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* error banner */
.lf-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin-bottom: 20px;
}

.lf-error-banner i {
    color: #ef4444;
    margin-top: 2px;
    flex-shrink: 0;
}

.lf-error-banner .lf-error-list {
    font-size: 13px;
    color: #b91c1c;
    font-weight: 500;
}

/* form controls */
.lf-group {
    margin-bottom: 20px;
}

.lf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.lf-input-wrap {
    position: relative;
}

.lf-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.lf-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 44px 0 42px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.lf-input:focus {
    border-color: #6c63ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, .1);
}

.lf-input.is-invalid {
    border-color: #ef4444;
    background: #fff5f5;
}

.lf-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.lf-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    transition: color .2s;
}

.lf-toggle-pass:hover {
    color: #6c63ff;
}

.lf-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
}

.lf-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.lf-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    user-select: none;
}

.lf-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    accent-color: #6c63ff;
    cursor: pointer;
}

.lf-forgot {
    font-size: 13px;
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
}

.lf-forgot:hover {
    text-decoration: underline;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(108, 99, 255, .35);
    letter-spacing: .2px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(108, 99, 255, .45);
}

.btn-login:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: #d1d5db;
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* google button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.btn-google:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* demo credentials card */
.demo-creds {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 12.5px;
}

.demo-creds-title {
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.demo-cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.demo-cred-row:last-child {
    margin-bottom: 0;
}

.demo-cred-label {
    color: #7c3aed;
    font-weight: 600;
}

.demo-cred-val {
    font-family: 'Courier New', monospace;
    color: #1f2937;
    background: rgba(255, 255, 255, .7);
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}

.demo-cred-val:hover {
    background: #fff;
}

.lf-footer-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 32px;
}

.lf-footer-note a {
    color: #6c63ff;
    text-decoration: none;
}

/* responsive – collapse brand panel below md */
@media (max-width: 900px) {
    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        width: 100%;
        padding: 40px 24px;
    }
}
