:root {
    --lg-bg: #f6f8fa;
    --lg-surface: #ffffff;
    --lg-border: #e2e8f0;
    --lg-border-strong: #cbd5e1;
    --lg-text: #1e293b;
    --lg-text-muted: #64748b;
    --lg-accent: #2D73B9;
    --lg-accent-hover: #1e5a96;
    --lg-accent-light: #eaf2fb;
    --lg-error-bg: #fdecec;
    --lg-error-border: #f5b3b3;
    --lg-error-text: #8a1f1f;
    --lg-success-bg: #ecf7ee;
    --lg-success-border: #a9d6b1;
    --lg-success-text: #1f6b2c;
    --lg-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --lg-radius: 12px;
}

html, body {
    margin: 0;
    padding: 0;
}

body.lg-body {
    min-height: 100vh;
    background: var(--lg-bg);
    color: var(--lg-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 48px;
    box-sizing: border-box;
}

.lg-banner {
    width: 100%;
    margin: 0 0 24px;
    text-align: center;
    background: var(--lg-surface);
    border-bottom: 1px solid var(--lg-border);
}
.lg-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.lg-shell {
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

.lg-brand {
    text-align: center;
    margin-bottom: 18px;
}
.lg-brand-links {
    font-size: 12.5px;
    color: var(--lg-text-muted);
}
.lg-brand-links a {
    color: var(--lg-text-muted);
    text-decoration: none;
    margin: 0 6px;
}
.lg-brand-links a:hover {
    color: var(--lg-accent);
}

.lg-card {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 28px 28px 24px;
}

.lg-card h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.lg-card .lg-sub {
    color: var(--lg-text-muted);
    font-size: 13px;
    margin: 0 0 20px;
}

.lg-notice {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.lg-notice.lg-error {
    background: var(--lg-error-bg);
    border: 1px solid var(--lg-error-border);
    color: var(--lg-error-text);
}
.lg-notice.lg-success {
    background: var(--lg-success-bg);
    border: 1px solid var(--lg-success-border);
    color: var(--lg-success-text);
}

.lg-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}
.lg-field label {
    font-size: 12.5px;
    color: var(--lg-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}
.lg-field input[type="text"],
.lg-field input[type="password"],
.lg-field input[type="email"] {
    border: 1px solid var(--lg-border-strong);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: var(--lg-text);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.lg-field input:focus {
    outline: none;
    border-color: var(--lg-accent);
    box-shadow: 0 0 0 3px rgba(45, 115, 185, 0.15);
}

.lg-button {
    display: inline-block;
    width: 100%;
    background: var(--lg-accent);
    color: #fff;
    border: 0;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
    margin-top: 6px;
}
.lg-button:hover { background: var(--lg-accent-hover); }

.lg-button.lg-secondary {
    background: #fff;
    color: var(--lg-accent);
    border: 1px solid var(--lg-border-strong);
}
.lg-button.lg-secondary:hover {
    background: var(--lg-accent-light);
    border-color: var(--lg-accent);
}

.lg-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.lg-actions-row .lg-button {
    flex: 1;
    margin-top: 0;
}

.lg-foot-links {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--lg-border);
    text-align: center;
    font-size: 13px;
}
.lg-foot-links a,
.lg-foot-links button {
    color: var(--lg-accent);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
.lg-foot-links a:hover,
.lg-foot-links button:hover {
    text-decoration: underline;
}
.lg-foot-links .lg-sep {
    color: var(--lg-border-strong);
    margin: 0 4px;
}

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