/* ============================================================
   SUDO Knowledge Portal — Login Page
   ============================================================ */

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

.login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.login-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.lp-left {
    width: 390px;
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Logo */
.lp-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .25rem;
}

.lp-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-logo-text { display: flex; flex-direction: column; }
.lp-logo-name { font-size: .92rem; font-weight: 700; color: #111827; line-height: 1.25; }
.lp-logo-sub  { font-size: .72rem; color: #6b7280; font-weight: 400; }

/* Card */
.lp-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
}

/* Alert */
.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: .75rem .9rem;
    font-size: .84rem;
    color: #991b1b;
    margin-bottom: 1rem;
}

.lp-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: .05rem;
}

/* Fields */
.lp-field {
    margin-bottom: 1rem;
}

.lp-label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .4rem;
}

.lp-input {
    width: 100%;
    padding: .6rem .8rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    font-size: .9rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    font-family: inherit;
}

.lp-input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.lp-input-error {
    border-color: #ef4444;
}

.lp-password-wrap {
    position: relative;
}

.lp-show-password {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: none;
    border: none;
    color: #1a56db;
    font-size: .82rem;
    cursor: pointer;
    padding: .35rem 0 0;
    font-family: inherit;
    font-weight: 500;
}

.lp-show-password svg {
    width: 15px;
    height: 15px;
}

.lp-show-password:hover {
    text-decoration: underline;
}

/* Checkbox */
.lp-check-row {
    margin-bottom: 1rem;
}

.lp-check-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.lp-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #1a56db;
    cursor: pointer;
    flex-shrink: 0;
}

/* Submit button */
.lp-submit {
    width: 100%;
    padding: .7rem 1rem;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    margin-bottom: 1rem;
}

.lp-submit:hover {
    background: #1a56db;
}

/* Links */
.lp-links {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.lp-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #1a56db;
    font-size: .84rem;
    text-decoration: none;
    font-weight: 500;
}

.lp-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.lp-link:hover {
    text-decoration: underline;
}

.lp-register {
    font-size: .84rem;
    color: #475569;
}

.lp-link-inline {
    color: #1a56db;
    text-decoration: none;
    font-weight: 500;
}

.lp-link-inline:hover {
    text-decoration: underline;
}

/* Prefs */
.lp-pref {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.lp-pref-label {
    font-size: .84rem;
    font-weight: 600;
    color: #1e293b;
}

.lp-select-wrap {
    position: relative;
}

.lp-select {
    width: 100%;
    padding: .6rem 2.2rem .6rem .85rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    font-size: .88rem;
    color: #1e293b;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}

.lp-select:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.lp-select-chevron {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #64748b;
    pointer-events: none;
}

/* Footer text */
.lp-footer-text {
    font-size: .75rem;
    color: #1a56db;
    text-align: center;
    margin-top: auto;
    padding-top: .5rem;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.lp-right {
    flex: 1;
    background: linear-gradient(145deg, #1e3a5f 0%, #1a56db 55%, #0d47a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative orbs */
.lp-right-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}

.lp-right-orb-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -80px;
}

.lp-right-orb-2 {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: 40px;
    background: rgba(255,255,255,.04);
}

.lp-right-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* White logo on right */
.lp-right-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.lp-right-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.lp-right-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: .6rem;
    line-height: 1.2;
}

.lp-right-sub {
    font-size: .92rem;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}

.lp-right-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.15);
    margin: 1.75rem 0;
}

/* Sections */
.lp-right-section {
    margin-bottom: 1.6rem;
    text-align: left;
}

.lp-right-section:last-child {
    margin-bottom: 0;
}

.lp-right-section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: .65rem;
    text-align: center;
}

.lp-right-section-text {
    font-size: .88rem;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    text-align: center;
    max-width: 580px;
    margin: 0 auto .85rem;
}

/* Tag cloud */
.lp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
    margin-top: .65rem;
}

.lp-tag {
    display: inline-block;
    padding: .28rem .75rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: .78rem;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.09);
    white-space: nowrap;
    transition: background .15s, border-color .15s;
    cursor: default;
}

.lp-tag:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
}

/* Steps */
.lp-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin: 0;
    padding: 0;
}

.lp-step {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-size: .88rem;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
}

.lp-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .login-layout {
        flex-direction: column;
    }

    .lp-left {
        width: 100%;
        order: 2;
        padding: 1.5rem;
    }

    .lp-right {
        order: 1;
        padding: 2rem 1.5rem;
        min-height: 40vh;
    }

    .lp-right-title {
        font-size: 1.4rem;
    }

    .lp-right-orb-1 {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .lp-card {
        padding: 1.25rem;
    }

    .lp-right {
        display: none;
    }

    .lp-left {
        min-height: 100vh;
        justify-content: center;
    }
}
