:root {
    --lf-accent: #ff5722;
    --lf-accent-dark: #e64a19;
    --lf-gold: #ffd700;
    --lf-text: #333;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #1d1d1d;
    background-image: url('/static/img/login/default_login_background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lf-card {
    width: 100%;
    max-width: 380px;
    padding: 35px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.lf-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
}

.lf-subtitle {
    color: var(--lf-gold);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.lf-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lf-field {
    position: relative;
    margin-bottom: 15px;
}

.lf-input {
    width: 100%;
    height: 42px;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--lf-text);
    font: inherit;
    font-size: 14px;
}

.lf-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.4);
}

.lf-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #888;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.lf-btn {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: var(--lf-accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.lf-btn:hover {
    background: var(--lf-accent-dark);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.lf-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lf-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.lf-alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.lf-alert--error {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
}

.lf-alert--warn {
    background: rgba(255, 193, 7, 0.9);
    color: var(--lf-text);
}

.lf-alert--warn ul {
    list-style: none;
    margin-top: 6px;
}

.lf-alert--warn li + li {
    margin-top: 4px;
}

.lf-alert--warn a {
    color: var(--lf-text);
    font-weight: 700;
}

.lf-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--lf-gold);
    font-size: 13px;
    text-decoration: none;
}

.lf-link:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .lf-btn {
        transition: none;
    }
}
