:root {
    --main-color: #FBBC05;
    --bg-color: #f4f6f8;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --input-bg: #f8f9fa;
    --input-border: #e2e8f0;
}

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

body {
    font-family: 'ABeeZee', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Główna karta logowania */
.login-container {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Żółty nagłówek REDIS */
.brand-header {
    background-color: var(--main-color);
    padding: 24px;
    text-align: center;
}

.brand-header h1 {
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Zawartość formularza */
.card-body {
    padding: 35px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-row h2 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: bold;
}

/* Przyciski zmiany języka */
.lang-form {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

/* Styl dla aktywnego języka (pasujący do screena) */
.lang-btn.active {
    border-color: #ff9f43;
    color: #ff9f43;
    background-color: #fff;
}

.description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.error-msg {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Pola formularza Django */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Automatyczne stylowanie inputów wypluwanych przez {{ form.username }} */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--main-color);
    background-color: #fff;
}

/* Przycisk Zaloguj */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #e5ac04;
}

/* Stopka na samym dole */
.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'ABeeZee', sans-serif;
}

.footer-text span {
    font-weight: bold;
    color: #475569;
}
