/*
 * Shared look for every login form (panel logins + the public site's student / office / member logins).
 * Everything is scoped under .lf-* so it never touches the rest of a page.
 *
 *   <div class="lf-field">
 *     <label class="lf-label" for="x">Email</label>
 *     <div class="lf-control"><i class="fa-solid fa-envelope lf-icon"></i><input class="lf-input" id="x" ...></div>
 *   </div>
 */
.lf-form { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; --lf-brand: #ff5a00; --lf-brand-dark: #e04a00; --lf-ink: #1f2937; --lf-soft: #6b7280; --lf-line: #d9dde5; --lf-bg: #f8f9fb; --lf-danger: #dc2626; text-align: left; }

.lf-field { margin-bottom: 18px; }
.lf-label { display: block; margin: 0 0 6px 2px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--lf-ink); }
.lf-hint { margin: 6px 2px 0; font-size: 12px; color: var(--lf-soft); }
.lf-error { margin: 6px 2px 0; font-size: 12.5px; font-weight: 500; color: var(--lf-danger); }

.lf-control { position: relative; display: block; }
.lf-control .lf-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; text-align: center; font-size: 15px; color: #9aa3b2; pointer-events: none; transition: color .15s; }
.lf-control .lf-input {
    display: block; width: 100%; height: 48px; margin: 0; padding: 0 44px 0 44px;
    font-family: inherit; font-size: 15px; line-height: 1.2; color: var(--lf-ink);
    background: var(--lf-bg); border: 1.5px solid var(--lf-line); border-radius: 12px;
    box-shadow: none; outline: 0; appearance: none; -webkit-appearance: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.lf-control .lf-input::placeholder { color: #a3abb9; opacity: 1; }
.lf-control .lf-input:hover { border-color: #c3c9d4; }
.lf-control .lf-input:focus { background: #fff; border-color: var(--lf-brand); box-shadow: 0 0 0 4px rgba(255, 90, 0, .16); }
.lf-control:focus-within .lf-icon { color: var(--lf-brand); }
.lf-control .lf-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--lf-ink); }
.lf-control .lf-input[type="date"] { padding-right: 14px; min-height: 48px; }

/* only flag a field as invalid once someone has typed in it and left it */
.lf-control .lf-input[placeholder]:not(:placeholder-shown):invalid { border-color: var(--lf-danger); }
.lf-control .lf-input[placeholder]:not(:placeholder-shown):invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }

.lf-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 10px; background: transparent; color: #8b94a5; font-size: 16px; cursor: pointer; transition: color .15s, background-color .15s; }
.lf-toggle:hover { color: var(--lf-brand); background: rgba(255, 90, 0, .08); }
.lf-toggle:focus-visible { outline: 2px solid var(--lf-brand); outline-offset: 0; }

.lf-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 2px 0 20px; font-size: 13.5px; }
.lf-row a { color: var(--lf-brand) !important; font-weight: 600; text-decoration: none; }
.lf-row a:hover { text-decoration: underline; }
.lf-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--lf-ink); cursor: pointer; user-select: none; white-space: nowrap; }
.lf-check input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--lf-brand); cursor: pointer; }

.lf-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin: 0; padding: 0 20px; border: 0; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #ff4c00 0%, #ff8a1f 100%); box-shadow: 0 8px 18px rgba(255, 90, 0, .28); cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; }
.lf-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(255, 90, 0, .34); filter: brightness(1.03); }
.lf-btn:active { transform: translateY(0); box-shadow: 0 6px 12px rgba(255, 90, 0, .26); }
.lf-btn:focus-visible { outline: 3px solid rgba(255, 90, 0, .35); outline-offset: 2px; }
.lf-btn:disabled { cursor: progress; opacity: .85; transform: none; }
.lf-btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: lf-spin .7s linear infinite; }
@keyframes lf-spin { to { transform: rotate(360deg); } }

.lf-foot { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--lf-soft); }
.lf-foot a { color: var(--lf-brand) !important; font-weight: 600; text-decoration: none; }
.lf-foot a:hover { text-decoration: underline; }

/* card used by the public office / student logins */
.lf-card { width: 100%; max-width: 440px; margin: 0 auto; padding: 34px 32px 30px; background: #fff; border: 1px solid #eef0f4; border-radius: 18px; box-shadow: 0 14px 40px rgba(16, 24, 40, .10); }
.lf-card__title { margin: 0 0 4px; font-size: 22px; font-weight: 700; text-align: center; color: #1f2937; }
.lf-card__sub { margin: 0 0 24px; font-size: 13.5px; text-align: center; color: #6b7280; }
@media (max-width: 480px) { .lf-card { padding: 26px 20px 24px; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .lf-btn, .lf-btn:hover, .lf-control .lf-input { transition: none; transform: none; } .lf-btn.is-loading::after { animation-duration: 1.6s; } }

/* the legacy admin template hides every checkbox (custom "filled-in" boxes); ours is a real, visible one */
.lf-check input[type="checkbox"] { position: static !important; opacity: 1 !important; pointer-events: auto !important; display: inline-block !important; width: 18px !important; height: 18px !important; appearance: auto !important; -webkit-appearance: checkbox !important; margin: 0 !important; }
.lf-check input[type="checkbox"]::before, .lf-check input[type="checkbox"]::after { content: none !important; display: none !important; }
.lf-check span::before, .lf-check span::after { content: none; }
/* some page stylesheets recolor every link inside their own wrappers: win by being more specific */
.lf-form ~ .lf-foot a, .login-wrap .lf-foot a, .lf-card .lf-foot a { color: var(--lf-brand, #ff5a00) !important; }

/* ---------- long forms (institute application, payment proof) ---------- */
.lf-card--wide { max-width: 980px; padding: 36px 36px 32px; }
.lf-req { color: var(--lf-danger, #dc2626); font-weight: 700; }
.lf-opt { margin-left: 4px; font-size: 11.5px; font-weight: 500; color: #9aa3b2; }
.lf-section { display: flex; align-items: center; gap: 10px; margin: 30px 0 4px; padding-bottom: 10px; border-bottom: 1px solid #eef0f4; font-size: 16px; font-weight: 700; color: #1f2937; }
.lf-section i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 14px; color: #ff5a00; background: #fff1ea; }
.lf-section:first-of-type { margin-top: 8px; }
.lf-section__note { margin: 8px 0 14px; font-size: 13px; color: #6b7280; }
.lf-section + .row, .lf-section__note + .row { margin-top: 14px; }

.lf-alert { margin: 0 0 22px; padding: 14px 18px; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 10px; background: #fef2f2; color: #7f1d1d; font-size: 13.5px; }
.lf-alert ul { margin: 8px 0 6px 18px; padding: 0; }
.lf-alert li { margin: 2px 0; }
.lf-alert small { color: #991b1b; }

.lf-control .lf-input.is-invalid, .lf-radios.is-invalid { border-color: #dc2626; }
.lf-control .lf-input--plain { padding-left: 14px; }
.lf-control .lf-select { padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.lf-control .lf-select:invalid { color: #a3abb9; }
.lf-control .lf-select option { color: #1f2937; }
.lf-control .lf-textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.lf-control .lf-file { height: auto; min-height: 48px; padding: 9px 12px; font-size: 14px; color: #4b5563; }
.lf-control .lf-file::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; color: #ff5a00; background: #fff1ea; cursor: pointer; transition: background-color .15s; }
.lf-control .lf-file::file-selector-button:hover { background: #ffe1d1; }
.lf-control .lf-input--plain.lf-file { padding-left: 12px; }

.lf-radios { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0; border: 1.5px solid transparent; border-radius: 12px; }
.lf-radio { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 0 18px; height: 48px; border: 1.5px solid var(--lf-line, #d9dde5); border-radius: 12px; background: var(--lf-bg, #f8f9fb); font-size: 14.5px; color: #1f2937; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.lf-radio:hover { border-color: #c3c9d4; }
.lf-radio input { width: 18px; height: 18px; margin: 0; accent-color: #ff5a00; cursor: pointer; position: static !important; opacity: 1 !important; pointer-events: auto !important; appearance: auto !important; -webkit-appearance: radio !important; }
.lf-radio:has(input:checked) { border-color: #ff5a00; background: #fff7f2; box-shadow: 0 0 0 3px rgba(255, 90, 0, .12); }
.lf-radio:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(255, 90, 0, .22); }

.lf-check--top { align-items: flex-start; white-space: normal; line-height: 1.5; font-size: 13.5px; }
.lf-check--top input { margin-top: 3px !important; }
.lf-btn--auto { width: auto; min-width: 280px; margin: 26px 0 0; padding: 0 34px; }
@media (max-width: 575.98px) { .lf-card--wide { padding: 24px 16px 22px; } .lf-btn--auto { width: 100%; min-width: 0; } .lf-radio { flex: 1 1 100%; } }

/* ---------- manual payment page ---------- */
.lf-pay { display: grid; gap: 12px; margin: 0 0 24px; padding: 18px 20px; border: 1px dashed #ffb48a; border-radius: 14px; background: #fff8f3; }
.lf-pay__amount { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; }
.lf-pay__amount strong { font-size: 30px; font-weight: 700; color: #ff5a00; letter-spacing: -.02em; }
.lf-pay__amount span { font-size: 13px; color: #6b7280; }
.lf-pay__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #ffe3d1; font-size: 14px; }
.lf-pay__row:first-of-type { border-top: 0; }
.lf-pay__row b { color: #6b7280; font-weight: 600; flex: 0 0 auto; }
.lf-pay__row span { min-width: 0; text-align: right; font-weight: 600; color: #1f2937; word-break: break-all; }
.lf-copy { flex: 0 0 auto; padding: 4px 10px; border: 1px solid #ffd2b8; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: #ff5a00; cursor: pointer; }
.lf-copy:hover { background: #fff1ea; }
.lf-steps { margin: 0 0 22px; padding: 0 0 0 20px; color: #4b5563; font-size: 13.5px; line-height: 1.7; }

/* the site stylesheet restyles every <p> and <h5> inside .Membership-sec (bold / huge): keep the form's own sizes */
.lf-card p.lf-card__sub, .lf-card p.lf-section__note { font-size: 13.5px !important; font-weight: 400 !important; line-height: 1.55 !important; color: #6b7280 !important; text-align: center; }
.lf-card p.lf-section__note { text-align: left; margin: 8px 0 14px !important; font-size: 13px !important; }
.lf-card h3.lf-card__title { font-size: 22px !important; line-height: 1.3 !important; margin-bottom: 4px !important; }
.lf-card h5.lf-section { font-size: 16px !important; font-weight: 700 !important; line-height: 1.3 !important; margin: 30px 0 4px !important; color: #1f2937 !important; text-transform: none !important; letter-spacing: 0 !important; }
.lf-card .lf-label { font-size: 13px !important; font-weight: 600 !important; }
.lf-card .lf-hint { font-size: 12px !important; font-weight: 400 !important; }
.lf-card .lf-radio span, .lf-card .lf-check span:not(.lf-req) { color: #1f2937 !important; font-weight: 500 !important; }
.lf-card .lf-opt { color: #9aa3b2 !important; font-weight: 500 !important; }
.lf-card .lf-req { color: #dc2626 !important; font-weight: 700 !important; }
