/* ─── Login page - Light theme ─── */
html:has(body.ws-login-page) {
    height: 100%;
    overflow: hidden;
}

body.ws-login-page {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    overflow: hidden;
    font-family: var(--ws-font-family);
    font-size: var(--ws-font-size);
    line-height: var(--ws-line-height);
    color: var(--ws-text);
    background:
        radial-gradient(ellipse 90% 60% at 10% 0%, rgba(99, 102, 241, 0.09), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 20%, rgba(16, 185, 129, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(59, 130, 246, 0.06), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #eef2ff 100%);
}

.ws-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ws-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.ws-login-orb-1 {
    width: 520px;
    height: 520px;
    background: rgba(99, 102, 241, 0.18);
    top: -12%;
    left: -8%;
    animation: wsFloat 14s ease-in-out infinite;
}

.ws-login-orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(16, 185, 129, 0.14);
    bottom: -8%;
    right: 5%;
    animation: wsFloat 16s ease-in-out infinite reverse;
}

.ws-login-orb-3 {
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.12);
    top: 35%;
    right: -6%;
    animation: wsFloat 11s ease-in-out infinite;
}

.ws-login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black, transparent);
}

@keyframes wsFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(16px, -18px) scale(1.03); }
}

.ws-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(16px, 2vh, 24px) clamp(24px, 3vw, 40px);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Illustration side */
.ws-login-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.ws-login-illustration-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(14px, 2vh, 20px);
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}

.ws-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.ws-login-logo {
    height: 52px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.ws-login-badge {
    padding: 6px 14px;
    border-radius: var(--ws-radius-full);
    background: linear-gradient(135deg, var(--ws-indigo-50), var(--ws-emerald-50));
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--ws-indigo-700);
    font-size: var(--ws-font-size);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ws-login-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vh, var(--ws-font-size-3xl));
    font-weight: 800;
    color: var(--ws-slate-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ws-login-hero-copy h1 span {
    background: linear-gradient(135deg, var(--ws-indigo-600), var(--ws-emerald-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ws-login-hero-copy p {
    margin: 0;
    font-size: var(--ws-font-size-lg);
    font-weight: 500;
    color: var(--ws-slate-500);
    line-height: 1.55;
    max-width: 460px;
}

/* Feature pills */
.ws-login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--ws-font-size-lg);
    color: var(--ws-slate-600);
    font-weight: 500;
}

.ws-login-feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ws-radius-sm);
    background: #fff;
    border: 1px solid var(--ws-border);
    color: var(--ws-indigo-600);
    font-size: 15px;
    box-shadow: var(--ws-shadow-xs);
}

/* Visual illustration */
.ws-login-visual {
    position: relative;
    flex-shrink: 0;
    height: clamp(140px, 18vh, 200px);
}

.ws-illustration-panel {
    position: absolute;
    inset: 0;
    border-radius: var(--ws-radius-xl);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        var(--ws-shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.ws-illustration-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.07), transparent 40%);
}

.ws-illustration-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border-radius: var(--ws-radius-lg);
    background: linear-gradient(145deg, var(--ws-indigo-500), var(--ws-emerald-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow:
        0 16px 40px rgba(99, 102, 241, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.ws-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: var(--ws-font-size);
    border-radius: var(--ws-radius-md);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--ws-border);
    color: var(--ws-slate-700);
    font-weight: 600;
    box-shadow: var(--ws-shadow-sm);
    z-index: 3;
}

.ws-float-card .bi {
    font-size: 16px;
    color: var(--ws-emerald-600);
}

.ws-float-card-1 { top: 18%; left: 8%; animation: wsFloat 8s ease-in-out infinite; }
.ws-float-card-2 { top: 12%; right: 8%; animation: wsFloat 10s ease-in-out infinite 1s; }
.ws-float-card-3 { bottom: 18%; left: 12%; animation: wsFloat 9s ease-in-out infinite 0.5s; }

.ws-login-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 10px 14px;
    border-radius: var(--ws-radius-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--ws-border);
    font-size: var(--ws-font-size);
    color: var(--ws-slate-500);
}

.ws-login-trust .bi {
    color: var(--ws-emerald-600);
    font-size: 16px;
}

/* Login form side */
.ws-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.ws-login-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ws-login-mobile-brand img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.ws-login-mobile-brand span {
    padding: 4px 12px;
    border-radius: var(--ws-radius-full);
    background: var(--ws-indigo-50);
    color: var(--ws-indigo-700);
    font-size: var(--ws-font-size-sm);
    font-weight: 600;
}

.ws-login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: clamp(28px, 3vh, 36px) clamp(28px, 2.5vw, 36px) clamp(22px, 2.5vh, 28px);
    border-radius: var(--ws-radius-xl);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 20px 50px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ws-login-card-glow {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--ws-indigo-500), var(--ws-emerald-500));
    opacity: 0.85;
}

.ws-login-card-header {
    text-align: center;
    margin-bottom: clamp(18px, 2.2vh, 24px);
}

.ws-login-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--ws-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ws-indigo-500), var(--ws-emerald-500));
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.28);
}

.ws-login-card-header h2 {
    margin: 0 0 6px;
    font-size: var(--ws-font-size-2xl);
    font-weight: 800;
    color: var(--ws-slate-900);
    letter-spacing: -0.02em;
}

.ws-login-card-header p {
    margin: 0;
    font-size: var(--ws-font-size-lg);
    font-weight: 500;
    color: var(--ws-slate-500);
}

/* Form fields */
.ws-form-field {
    margin-bottom: clamp(14px, 1.8vh, 18px);
}

.ws-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--ws-font-size-lg);
    font-weight: 600;
    color: var(--ws-slate-700);
}

.ws-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ws-input-wrap > .bi {
    position: absolute;
    left: 14px;
    color: var(--ws-slate-400);
    font-size: 16px;
    pointer-events: none;
    transition: var(--ws-transition);
}

.ws-input-wrap .form-control {
    width: 100%;
    padding: 11px 44px 11px 42px;
    border-radius: var(--ws-radius-md);
    border: 1.5px solid var(--ws-slate-200);
    background: var(--ws-slate-50);
    color: var(--ws-slate-800);
    font-size: var(--ws-font-size-lg);
    font-weight: 500;
    transition: var(--ws-transition);
}

.ws-input-wrap .form-control::placeholder {
    color: var(--ws-slate-400);
}

.ws-input-wrap .form-control:hover {
    border-color: var(--ws-slate-300);
    background: #fff;
}

.ws-input-wrap .form-control:focus {
    outline: none;
    border-color: var(--ws-indigo-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.ws-input-wrap:focus-within > .bi {
    color: var(--ws-indigo-500);
}

.ws-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--ws-slate-400);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: var(--ws-transition);
    border-radius: 6px;
}

.ws-password-toggle:hover {
    color: var(--ws-indigo-600);
    background: var(--ws-indigo-50);
}

/* Options row */
.ws-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(16px, 2vh, 20px);
    gap: 12px;
}

.ws-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--ws-font-size-lg);
    color: var(--ws-slate-600);
    user-select: none;
    position: relative;
}

.ws-remember input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.ws-checkmark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--ws-slate-300);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ws-transition);
    flex-shrink: 0;
}

.ws-remember input:checked + .ws-checkmark {
    background: var(--ws-indigo-500);
    border-color: var(--ws-indigo-500);
}

.ws-remember input:checked + .ws-checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ws-forgot-link {
    font-size: var(--ws-font-size-lg);
    color: var(--ws-indigo-600);
    font-weight: 600;
    transition: var(--ws-transition);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ws-login-home-link {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--ws-radius-full);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--ws-slate-700);
    font-weight: 700;
    font-size: var(--ws-font-size);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.ws-login-home-link:hover {
    color: var(--ws-indigo-700);
    border-color: rgba(99, 102, 241, 0.25);
    background: #fff;
}

.ws-forgot-link:hover {
    color: var(--ws-indigo-700);
    text-decoration: underline;
}

/* ── Forgot password modal (mockup UI) ── */
.ws-forgot-modal .modal-dialog {
    max-width: 420px;
}

.ws-forgot-shell {
    position: relative;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
}

.ws-forgot-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.ws-forgot-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 22px 6px;
    padding-right: 42px;
}

.ws-forgot-top-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.28);
    font-size: 18px;
}

.ws-forgot-top-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.ws-forgot-top-sub {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.ws-forgot-card {
    margin: 10px 16px 8px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ws-forgot-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ws-forgot-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: #6366f1;
    flex-shrink: 0;
}

.ws-forgot-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.ws-forgot-card-desc {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.ws-forgot-illu {
    position: relative;
    height: 88px;
    margin: 0 0 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ws-forgot-illu-mail {
    width: 64px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.28);
}

.ws-forgot-illu-user {
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -40%);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.ws-forgot-illu-plane {
    position: absolute;
    right: 28%;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.ws-forgot-illu-shield {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
}

.ws-forgot-spark {
    position: absolute;
    color: #a5b4fc;
    font-size: 18px;
    font-weight: 700;
    opacity: 0.85;
}

.ws-forgot-spark:nth-child(2) { top: 16px; left: 28%; }
.ws-forgot-spark:nth-child(3) { top: 18px; right: 26%; }
.ws-forgot-spark:nth-child(4) { bottom: 16px; left: 24%; }
.ws-forgot-spark:nth-child(5) { bottom: 18px; right: 24%; }

.ws-forgot-illu-lock {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

.ws-forgot-illu-check {
    position: absolute;
    right: calc(50% - 42px);
    bottom: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #fff;
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.35);
}

.ws-forgot-field {
    margin-bottom: 14px;
}

.ws-forgot-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.ws-forgot-input {
    position: relative;
    display: flex;
    align-items: center;
}

.ws-forgot-input > .bi:first-child {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.ws-forgot-input input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 40px 0 38px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-forgot-input input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ws-forgot-eye {
    position: absolute;
    right: 8px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ws-forgot-eye:hover {
    color: #6366f1;
    background: #eef2ff;
}

.ws-forgot-primary {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28);
    transition: transform 0.15s ease, background 0.15s ease;
}

.ws-forgot-primary:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-1px);
}

.ws-forgot-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ws-forgot-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.ws-forgot-or::before,
.ws-forgot-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.ws-forgot-secondary {
    width: 100%;
    min-height: 42px;
    border: 1.5px solid #c7d2fe;
    border-radius: 10px;
    background: #fff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.ws-forgot-secondary:hover {
    background: #eef2ff;
}

.ws-forgot-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
}

.ws-forgot-note--privacy {
    background: #eef2ff;
    color: #4338ca;
}

.ws-forgot-note--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ws-forgot-note i {
    margin-top: 1px;
    flex-shrink: 0;
}

.ws-otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ws-otp-box {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-otp-box:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ws-forgot-sent-to {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    text-align: left;
}

.ws-forgot-sent-to strong {
    color: #0f172a;
}

.ws-forgot-change {
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
}

.ws-forgot-resend-line {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.ws-forgot-resend {
    border: 0;
    background: none;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.ws-forgot-resend:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.ws-forgot-strength {
    margin-top: 8px;
}

.ws-forgot-strength-bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.ws-forgot-strength-bars span {
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}

.ws-forgot-strength.is-weak [data-bar="1"] { background: #ef4444; }
.ws-forgot-strength.is-medium [data-bar="1"],
.ws-forgot-strength.is-medium [data-bar="2"] { background: #f59e0b; }
.ws-forgot-strength.is-strong [data-bar="1"],
.ws-forgot-strength.is-strong [data-bar="2"],
.ws-forgot-strength.is-strong [data-bar="3"] { background: #22c55e; }

.ws-forgot-strength-label {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.ws-forgot-strength.is-weak .ws-forgot-strength-label strong { color: #ef4444; }
.ws-forgot-strength.is-medium .ws-forgot-strength-label strong { color: #d97706; }
.ws-forgot-strength.is-strong .ws-forgot-strength-label strong { color: #16a34a; }

.ws-forgot-footer {
    margin: 0;
    padding: 8px 22px 20px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.ws-forgot-back-login {
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.ws-forgot-back-login:hover {
    text-decoration: underline;
}

/* Two-factor OTP step */
.ws-login-2fa-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--ws-radius-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: var(--ws-slate-700, #334155);
    font-size: var(--ws-font-size-sm, 0.875rem);
    line-height: 1.45;
}

.ws-login-2fa-banner i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ws-indigo-600);
    font-size: 1.15rem;
}

.ws-login-2fa-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 14px;
}

.ws-login-2fa-actions .ws-login-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--ws-indigo-600);
    font-size: var(--ws-font-size-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
}

.ws-login-2fa-actions .ws-login-link-btn:hover:not(:disabled) {
    color: var(--ws-indigo-700);
    text-decoration: underline;
}

.ws-login-2fa-actions .ws-login-link-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Submit button */
.ws-login-submit {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--ws-radius-md);
    border: none;
    background: linear-gradient(135deg, var(--ws-indigo-600) 0%, var(--ws-indigo-500) 50%, var(--ws-emerald-500) 100%);
    background-size: 200% auto;
    color: #fff;
    font-size: var(--ws-font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--ws-transition);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ws-login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    background-position: right center;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.ws-login-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.ws-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(16px, 2vh, 20px) 0 0;
    font-size: var(--ws-font-size);
    color: var(--ws-slate-400);
}

.ws-login-divider::before,
.ws-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ws-slate-200);
}

.ws-login-footer-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: var(--ws-font-size);
    color: var(--ws-slate-400);
    line-height: 1.4;
}

/* Short viewports - hide decorative blocks so larger dashboard typography still fits */
@media (max-height: 1000px) {
    .ws-login-visual {
        display: none;
    }
}

@media (max-height: 780px) {
    .ws-login-trust {
        display: none;
    }

    .ws-login-hero-copy p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-height: 700px) {
    .ws-login-divider {
        display: none;
    }

    .ws-login-features {
        gap: 8px;
    }

    .ws-login-features li {
        font-size: var(--ws-font-size);
    }

    .ws-login-card {
        padding-top: 22px;
        padding-bottom: 18px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    body.ws-login-page {
        overflow-y: auto;
        max-height: none;
    }

    .ws-login-shell {
        grid-template-columns: 1fr;
        padding: 20px;
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow: visible;
    }

    .ws-login-illustration {
        display: none;
    }

    .ws-login-mobile-brand {
        display: flex;
    }

    .ws-login-main {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ws-login-main {
        padding: 12px;
    }

    .ws-login-card {
        padding: 32px 22px 24px;
    }

    .ws-login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Button loading state (login page) */
button.is-btn-loading,
.btn.is-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
