@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html, body {
    height: 100%;
}

body.lg-page {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: #f4f4f2;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

input::-ms-reveal,
input::-ms-clear { display: none; }

/* ────────────────────────────────────────
   Layout Wrapper
──────────────────────────────────────── */

.lg-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ────────────────────────────────────────
   Left Brand Panel
──────────────────────────────────────── */

.lg-brand-panel {
    flex: 0 0 45%;
    background: linear-gradient(160deg, #1b3a2d 0%, #142d22 55%, #0e2118 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.lg-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.lg-deco--1 {
    width: 350px;
    height: 350px;
    top: -80px;
    right: -80px;
}

.lg-deco--2 {
    width: 240px;
    height: 240px;
    bottom: -60px;
    left: -60px;
}

.lg-deco--3 {
    width: 140px;
    height: 140px;
    bottom: 120px;
    right: 30px;
    background: rgba(134, 239, 172, 0.06);
}

.lg-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Logo */
.lg-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    margin: 0 auto 24px;
    background: #fff;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 3px rgba(255,255,255,0.12);
}

.lg-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lg-app-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.lg-app-tagline {
    font-size: 13.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin-bottom: 40px;
}

/* Feature pills */
.lg-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.lg-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 14px;
}

.lg-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(134, 239, 172, 0.12);
    border-radius: 7px;
    color: #86efac;
    flex-shrink: 0;
}

/* ────────────────────────────────────────
   Right Form Panel
──────────────────────────────────────── */

.lg-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #fafaf8;
    background-image: radial-gradient(circle, #e5e5e3 1px, transparent 1px);
    background-size: 24px 24px;
}

.lg-form-inner {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

/* Mobile logo - hidden on desktop */
.lg-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.lg-mobile-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #e4e4e2;
}

.lg-mobile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lg-mobile-brand span {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* Form header */
.lg-form-header {
    margin-bottom: 28px;
}

.lg-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.lg-form-subtitle {
    font-size: 13.5px;
    color: #888;
}

/* Alert */
.lg-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.lg-alert--error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* Form */
.lg-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lg-field {
    margin-bottom: 20px;
}

.lg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}

.lg-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d8d8d6;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lg-input-wrap:focus-within {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.lg-input-icon {
    width: 42px;
    display: grid;
    place-items: center;
    color: #bbb;
    flex-shrink: 0;
}

.lg-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #111;
    padding: 11px 4px;
    outline: none;
    min-width: 0;
}

.lg-input::placeholder {
    color: #bbb;
}

.lg-toggle-pw {
    width: 42px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.15s;
}

.lg-toggle-pw:hover { color: #555; }

/* Submit button */
.lg-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1b3a2d 0%, #2d5a3d 100%);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(27, 58, 45, 0.35);
    margin-top: 4px;
}

.lg-btn-submit:hover {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(27, 58, 45, 0.45);
    transform: translateY(-1px);
}

.lg-btn-submit:active {
    transform: translateY(0);
    opacity: 1;
}

/* Footer note */
.lg-footer-note {
    margin-top: 32px;
    font-size: 12px;
    color: #bbb;
    text-align: center;
}

/* ────────────────────────────────────────
   Responsive — Mobile
──────────────────────────────────────── */

@media (max-width: 768px) {
    .lg-wrap {
        flex-direction: column;
    }

    .lg-brand-panel {
        flex: none;
        padding: 32px 24px;
    }

    .lg-brand-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lg-logo-wrap {
        width: 64px;
        height: 64px;
        padding: 10px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .lg-app-name {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .lg-app-tagline {
        font-size: 12.5px;
        margin-bottom: 20px;
    }

    .lg-features {
        width: 100%;
        max-width: 340px;
    }

    .lg-feature {
        font-size: 12px;
        padding: 8px 12px;
    }

    .lg-form-panel {
        padding: 32px 20px;
        align-items: flex-start;
    }

    .lg-mobile-brand {
        display: none; /* hidden since brand panel is visible above */
    }

    .lg-form-inner {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .lg-brand-panel {
        padding: 24px 16px;
    }

    .lg-features {
        display: none; /* hide features on very small screens */
    }
}
