/* ── Variables ─────────────────────────────────────────── */
:root {
    --pri:  #00515e;
    --sec:  #039148;
    --dark: #1e2d2f;
    --muted:#6b7280;
    --border:#dde3e8;
}

/* ── Page ─────────────────────────────────────────────── */
.lg-page {
    min-height: calc(100vh - 106px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 60px;
}

/* ── Card ─────────────────────────────────────────────── */
.lg-card {
    display: flex;
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,.14);
}

/* ── Left panel ───────────────────────────────────────── */
.lg-left {
    flex: 1;
    background: linear-gradient(160deg, var(--pri) 0%, var(--sec) 100%);
    color: #fff;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lg-left::before {
    content: '';
    position: absolute; top:-80px; right:-80px;
    width:240px; height:240px; border-radius:50%;
    background: rgba(255,255,255,.07);
}
.lg-left::after {
    content: '';
    position: absolute; bottom:-60px; left:-60px;
    width:180px; height:180px; border-radius:50%;
    background: rgba(255,255,255,.07);
}
.lg-logo {
    width: 140px; height: 140px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    position: relative; z-index:1;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    padding: 10px;
    box-sizing: border-box;
}
.lg-logo img { width: 100%; height: 100%; object-fit:contain; }
.lg-logo i { font-size:3.5rem; color: var(--pri); }
.lg-left h2 {
    font-size: 1.5rem; font-weight: 700;
    margin: 0 0 10px; position: relative; z-index:1;
}
.lg-left p {
    font-size: .88rem; opacity: .85; line-height: 1.55;
    margin: 0 0 32px; position: relative; z-index:1;
}
.lg-register-link {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.15);
    color: #fff; text-decoration: none;
    padding: 10px 22px; border-radius: 25px;
    font-size: .84rem; font-weight: 600;
    transition: background .2s; position: relative; z-index:1;
}
.lg-register-link:hover { background: rgba(255,255,255,.28); color:#fff; }

/* ── Right panel (form) ───────────────────────────────── */
.lg-right {
    flex: 1;
    background: #fff;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lg-right h3 {
    font-size: 1.3rem; font-weight: 700;
    color: var(--dark); margin: 0 0 6px;
}
.lg-right .lg-sub {
    font-size: .85rem; color: var(--muted);
    margin: 0 0 28px;
}

/* ── Alerts ───────────────────────────────────────────── */
.lg-alert {
    border-radius: 10px; padding: 11px 14px;
    font-size: .87rem; margin-bottom: 18px;
    display: flex; align-items: flex-start; gap: 8px;
}
.lg-alert-danger {
    background: #fff5f5; border: 1px solid #fca5a5; color: #b91c1c;
}
.lg-alert-success {
    background: #f0fdf4; border: 1px solid #86efac; color: #166534;
}

/* ── Fields ───────────────────────────────────────────── */
.lg-field { margin-bottom: 18px; }
.lg-field label {
    display: block; font-size: .82rem; font-weight: 600;
    color: #374151; margin-bottom: 5px;
}
.lg-field label .req { color: #e74c3c; margin-left:2px; }
.lg-field input {
    width: 100%; box-sizing: border-box;
    padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: 9px; font-size: .93rem;
    background: #fff; color: var(--dark);
    transition: border-color .2s, box-shadow .2s;
    outline: none; font-family: inherit;
}
.lg-field input:focus {
    border-color: var(--pri);
    box-shadow: 0 0 0 3px rgba(0,81,94,.1);
}
.lg-field input.is-invalid { border-color: #e74c3c; }
.lg-err { display:block; font-size:.78rem; color:#e74c3c; margin-top:4px; }

/* Password toggle */
.lg-pwd { position: relative; }
.lg-pwd input { padding-right: 44px; }
.lg-eye {
    position: absolute; right:0; top:0; bottom:0; width:42px;
    background: none; border: none; color: #9ca3af;
    cursor: pointer; display:flex; align-items:center; justify-content:center;
    font-size: .93rem; transition: color .2s;
}
.lg-eye:hover { color: var(--pri); }

/* Remember row */
.lg-row-middle {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px; font-size: .83rem;
}
.lg-remember {
    display: flex; align-items: center; gap: 7px; color: #374151;
    cursor: pointer;
}
.lg-remember input[type=checkbox] {
    width: 15px; height: 15px; accent-color: var(--pri); cursor:pointer;
}

/* Submit */
.lg-submit {
    display: flex; align-items: center; justify-content: center; gap:9px;
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #039148, #00515e);
    color: #fff; border: none; border-radius: 10px;
    font-size: .97rem; font-weight: 700; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(3,145,72,.28);
    font-family: inherit;
}
.lg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(3,145,72,.38);
}
.lg-submit:active { transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
    .lg-card { flex-direction: column; }
    .lg-left { padding: 32px 24px; }
    .lg-right { padding: 30px 24px; }
    .lg-logo { width:100px; height:100px; padding:8px; }
    .lg-logo img { width:100%; height:100%; }
}
