/*
 * Material card for the public auth pages (login, forgot password, reset password): company background,
 * outlined floating-label fields, teal filled button. The forgot/reset pages run under a strict CSP
 * (no inline styles, no fonts), so everything here is plain classes and none of the pages needs an icon font.
 */
:root { --lg-teal: #028090; --lg-teal-dark: #016a77; --lg-text: #1f2933; --lg-muted: #5f6b76; --lg-border: #c5ccd3; }

body.lg-body {
    margin: 0; min-height: 100vh; box-sizing: border-box; padding: 24px;
    display: flex; align-items: center; justify-content: center;
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--lg-text);
    background: #292931 url('/assets/img/SectorsDesktop.jpg') no-repeat center center fixed; background-size: cover;
}
body.lg-body::before { content: ''; position: fixed; inset: 0; background: rgba(20, 26, 32, .5); pointer-events: none; }

.lg-card {
    position: relative; width: min(420px, 100%); box-sizing: border-box; background: #fff;
    border-radius: 16px; border-top: 4px solid var(--lg-teal); padding: 32px 32px 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .2);
}

.lg-brand { margin-bottom: 26px; text-align: center; }
.lg-logo-title { margin: 0; line-height: 0; }
.lg-logo { display: block; width: min(280px, 85%); height: auto; margin: 0 auto; }
.lg-title { margin: 0; font-size: 1.4rem; font-weight: 500; line-height: 1.25; color: var(--lg-text); }
.lg-sub { margin: 4px 0 24px; font-size: .95rem; font-weight: 400; color: var(--lg-muted); }
.lg-brand .lg-sub { margin: 12px 0 0; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

.lg-field { position: relative; margin-bottom: 18px; }
.lg-field input {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: #111; background: #fff;
    border: 1px solid var(--lg-border); border-radius: 8px; padding: 20px 14px 6px; outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.lg-field input:hover { border-color: #9aa4b0; }
.lg-field input:focus { border-color: var(--lg-teal); box-shadow: 0 0 0 3px rgba(2, 128, 144, .18); }
.lg-field label {
    position: absolute; left: 15px; top: 16px; color: var(--lg-muted); font-size: 16px; pointer-events: none;
    transition: top .15s, font-size .15s, color .15s;
}
.lg-field input:focus + label, .lg-field input:not(:placeholder-shown) + label { top: 6px; font-size: 12px; }
.lg-field input:focus + label { color: var(--lg-teal); }

/* optional leading icon and password toggle (login page only) */
.lg-field-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 1em; overflow: hidden; white-space: nowrap;
    color: var(--lg-muted); font-size: 22px; pointer-events: none; transition: color .2s;
}
.lg-field:focus-within .lg-field-icon { color: var(--lg-teal); }
.lg-field.has-icon input { padding-left: 46px; }
.lg-field.has-icon label { left: 47px; }
.lg-field.has-toggle input { padding-right: 52px; }
.lg-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--lg-muted); cursor: pointer;
    transition: background-color .2s;
}
.lg-toggle:hover, .lg-toggle:focus-visible { background: rgba(0, 0, 0, .06); outline: 0; }
.lg-toggle .material-symbols-outlined { font-size: 22px; width: 1em; overflow: hidden; white-space: nowrap; }

.lg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; margin-top: 8px;
    font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff;
    background: var(--lg-teal); border: 0; border-radius: 8px; padding: 12px 28px; cursor: pointer; text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: background-color .2s, box-shadow .2s;
}
.lg-btn:hover, .lg-btn:focus-visible { background: var(--lg-teal-dark); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); outline: 0; }
.lg-btn:disabled { opacity: .8; cursor: progress; }
.lg-btn .material-symbols-outlined { font-size: 20px; width: 1em; overflow: hidden; white-space: nowrap; }
.lg-btn-block { width: 100%; }
.lg-btn-link, .lg-btn-link:hover, .lg-btn-link:focus { text-decoration: none; }

/* the login script puts a Bootstrap "spinner-border" in the button; this page loads no Bootstrap */
.spinner-border {
    display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: lg-spin .7s linear infinite;
}
@keyframes lg-spin { to { transform: rotate(360deg); } }

/* "Forgot password?" link and the notices of the forgot / reset pages */
.lg-link { display: inline-block; margin: 8px 0 0 16px; color: var(--lg-teal); font-size: 14px; text-decoration: none; }
.lg-link:hover, .lg-link:focus { text-decoration: underline; }
.lg-link-flat { margin-left: 0; }
.lg-actions { display: flex; align-items: center; flex-wrap: wrap; }
.lg-actions-stack { flex-direction: column; align-items: stretch; gap: 14px; }
.lg-actions-stack .lg-btn { margin-top: 4px; }
.lg-actions-stack .lg-link { margin: 0; text-align: center; }
.lg-msg { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.lg-msg-ok { background: #e6f4ea; color: #176b2c; }
.lg-msg-err { background: #fdecea; color: #a40000; }
.lg-help { color: #444; font-size: 14px; line-height: 1.5; margin: 0 0 20px; }

@media (max-width: 420px) { .lg-card { padding: 26px 20px 22px; } }
