/* ============================================================
   Tokens
   ============================================================ */
:root {
    --bg-page:        #1f2937; /* gray-800 */
    --bg-panel:       #111827; /* gray-900 */
    --bg-input:       #1f2937;
    --border-input:   #374151; /* gray-700 */
    --border-focus:   #2962ff;
    --color-primary:  #2962ff;
    --color-primary-h:#1e4fcc;
    --text-default:   #f9fafb;
    --text-neutral:   #9ca3af; /* gray-400 */
    --text-disabled:  #6b7280; /* gray-500 */
    --text-blue:      #60a5fa; /* blue-400 */
    --text-blue-h:    #93c5fd; /* blue-300 */
    --text-error:     #f87171; /* red-400 */
    --radius-input:   0.375rem;
    --radius-btn:     0.375rem;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   Page shell
   ============================================================ */
.lp-body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-default);
}

/* ============================================================
   Two-column wrapper
   ============================================================ */
.lp-columns {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100svh;
}

@media (min-width: 1024px) {
    .lp-columns { flex-direction: row; }
}

/* ============================================================
   Left — form panel (60%)
   ============================================================ */
.lp-left {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1rem 3rem;
    min-height: 100svh;
    background-color: var(--bg-panel);
    background-image: radial-gradient(ellipse at 20% 50%, rgba(41,98,255,.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 10%, rgba(41,98,255,.05) 0%, transparent 50%);
}

@media (min-width: 640px)  { .lp-left { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .lp-left { flex: 0 0 60%; } }

/* inner content — capped width, spaced top/middle/bottom */
.lp-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 28rem;
    min-height: 100%;
    flex: 1;
}

/* ============================================================
   Nav row (back + logo)
   ============================================================ */
.lp-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2rem;
    width: 6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-default);
    font-size: 0.875rem;
    border-radius: 0.375rem;
    padding: 0.25rem 0;
    transition: color .15s;
}
.lp-back-btn:hover { color: var(--text-neutral); }
.lp-back-btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: currentColor; }

.lp-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-default);
    text-decoration: none;
}
.lp-logo span { color: var(--color-primary); }

/* ============================================================
   Form section
   ============================================================ */
.lp-form-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.lp-form { display: flex; flex-direction: column; gap: 1.5rem; }

.lp-field { display: flex; flex-direction: column; gap: 0.25rem; }

.lp-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-label {
    font-size: 0.875rem;
    color: var(--text-neutral);
}

.lp-forgot {
    font-size: 0.875rem;
    color: var(--text-blue);
    text-decoration: none;
    transition: color .15s;
}
.lp-forgot:hover { color: var(--text-blue-h); }

.lp-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-input);
    color: var(--text-default);
    font-size: 1rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.lp-input::placeholder { color: var(--text-disabled); }
.lp-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(41,98,255,.2);
}
.lp-input.input-validation-error { border-color: var(--text-error); }

.lp-field-error {
    font-size: 0.75rem;
    color: var(--text-error);
    min-height: 1rem;
}

/* Remember me */
.lp-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.lp-remember input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.lp-remember-label {
    font-size: 0.75rem;
    color: var(--text-neutral);
}

/* Submit */
.lp-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color .15s;
}
.lp-submit:hover, .lp-submit:focus { background-color: var(--color-primary-h); outline: none; }

/* Validation summary */
.lp-validation-summary {
    padding: 0.625rem 0.875rem;
    background-color: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.4);
    border-radius: var(--radius-input);
    color: var(--text-error);
    font-size: 0.875rem;
}
.lp-validation-summary ul { list-style: none; }

/* ============================================================
   Register prompt (bottom of left panel)
   ============================================================ */
.lp-register {
    text-align: center;
    font-size: 0.875rem;
    padding: 0 1rem;
}
.lp-register-text { color: var(--text-neutral); }
.lp-register a {
    color: var(--text-blue);
    text-decoration: none;
    transition: color .15s;
}
.lp-register a:hover { color: var(--text-blue-h); }

/* ============================================================
   Right — hero image panel (40%), desktop only
   ============================================================ */
.lp-right {
    display: none;
    overflow: hidden;
    position: relative;
    background-color: #0a0a0f;
}

@media (min-width: 1024px) {
    .lp-right {
        flex: 0 1 40%;
        display: flex;
        align-items: stretch;
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

.lp-hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center top;
    display: block;
}
