/* ========================================
   LOGIN PAGE — Clean Modern Design
   Font: DM Sans / Inter
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', 'Inter', -apple-system, sans-serif;
    background: #ffffff;
    color: #0a0a0a;
    margin: 0;
}

/* ── Outer wrapper ── */
.lp-outer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top bar — full width ── */
.lp-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
}

/* ── Two-column layout ── */
.lp-wrap {
    display: flex;
    flex-direction: row;
    flex: 1;
}

/* ── LEFT panel — scrollable ── */
.lp-left {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 56px;
    min-height: calc(100vh - 57px);
}

/* ── RIGHT panel — fixed to viewport ── */
.lp-right {
    flex: 0 0 50%;
    width: 50%;
    position: sticky;
    top: 57px;
    height: calc(100vh - 57px);
    align-self: flex-start;
    overflow: hidden;
    background: #1a1a1a;
}

/* top bar — duplicate removed, see .lp-topbar above */

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.lp-logo img {
    height: 30px;
    width: auto;
}

.lp-logo-name {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.2px;
}

.lp-new-here {
    font-size: 14px;
    color: #6b7280;
}

.lp-new-here a {
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
}

.lp-new-here a:hover { text-decoration: underline; }

/* form area */
.lp-form-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    margin: auto 0;
}

/* badge */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.lp-badge-dot {
    width: 7px; height: 7px;
    background: #007b5d;
    border-radius: 50%;
    display: inline-block;
}

/* heading */
.lp-heading {
    font-size: 38px;
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.lp-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* role toggle */
.lp-role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 0;
}

.lp-role-toggle input[type="radio"] { display: none; }

.lp-role-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    user-select: none;
}

.lp-role-toggle input[type="radio"]:checked + .lp-role-label {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    font-weight: 600;
}

/* fields */
.lp-field {
    margin-bottom: 18px;
}

.lp-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lp-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.lp-forgot {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}
.lp-forgot:hover { color: #0a0a0a; }

.lp-input-wrap { position: relative; }

.lp-input {
    width: 100%;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 14px;
    color: #0a0a0a;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.lp-input:focus {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 2px rgba(10,10,10,0.08);
}

.lp-eye {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.15s;
}
.lp-eye:hover { color: #374151; }

/* error messages */
.lp-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lp-alert {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-alert-blocked {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* submit btn */
.lp-submit {
    width: 100%;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #0a0a0a;
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
    margin-bottom: 20px;
}
.lp-submit:hover { background: #222; }

/* OR divider */
.lp-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #9ca3af;
}
.lp-or::before, .lp-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* social buttons */
.lp-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.lp-social-btn {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: border-color 0.15s;
    text-align: center;
}
.lp-social-btn:hover { border-color: #9ca3af; }

/* terms */
.lp-terms {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}
.lp-terms a { color: #6b7280; text-decoration: underline; }

/* admin link */
.lp-admin {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9ca3af;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s;
    width: 100%;
}
.lp-admin:hover { color: #374151; }

/* ── RIGHT panel ── */
.lp-right {
    flex: 0 0 50%;
    width: 50%;
    position: sticky;
    top: 57px;
    height: calc(100vh - 57px);
    align-self: flex-start;
    overflow: hidden;
    background: #1a1a1a;
}

.lp-right-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 0.85;
}

/* online badge */
.lp-online-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
}

.lp-online-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

/* testimonial card */
.lp-testimonial {
    position: absolute;
    bottom: 40px;
    left: 32px;
    right: 32px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
}

.lp-testimonial-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.lp-testimonial-text {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.lp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.lp-author-name {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.lp-author-role {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

/* ── Forgot password modal ── */
.lp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lp-modal-overlay.open { display: flex; }

.lp-modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.lp-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.lp-modal-close:hover { background: #e5e7eb; }

.lp-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.lp-modal-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .lp-wrap   { flex-direction: column; }
    .lp-left   { flex: unset; width: 100%; padding: 32px 28px; min-height: unset; justify-content: flex-start; }
    .lp-right  { display: none; }
    .lp-topbar { padding: 16px 24px; position: relative; }
}

@media (max-width: 480px) {
    .lp-left { padding: 24px 20px; }
    .lp-heading { font-size: 30px; }
    .lp-form-area { max-width: 100%; }
}
