/**
 * Login Page - Style CSS
 * Wydzielone z index.php - 2026-01-25
 *
 * Kolory marki:
 * - BRAND_GREEN: #6DAD21
 * - BRAND_GREEN_DARK: #5a9a1a
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('/images/grass-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Delikatne przyciemnienie tla dla lepszej czytelnosci */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 440px;
    width: 100%;
    padding: 48px 40px;
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-kwb {
    height: 4rem;
    width: auto;
    fill: #6DAD21;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #6DAD21;
    box-shadow: 0 0 0 3px rgba(109, 173, 33, 0.1);
}

input[type="text"]:disabled,
input[type="password"]:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #6DAD21;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
    background: #5a9a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 173, 33, 0.3);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    border-left: 4px solid #c33;
}

.lockout-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    border-left: 4px solid #ffc107;
}

.footer-links {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.footer-links a {
    color: #6DAD21;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.partner-box {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border-top: 1px solid #e5e5e5;
}

.partner-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-box p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.partner-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.partner-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.partner-contact a:hover {
    color: #6DAD21;
}

.partner-contact span {
    font-size: 16px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 24px;
    }

    .logo {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
}
