* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #ffffff; /* Białe tło całej strony */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image: 
        radial-gradient(#e2e8f0 1.2px, transparent 1.2px),
        radial-gradient(#e2e8f0 1.2px, #ffffff 1.2px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.login-card {
    background: #ffffff; /* Czyste białe tło panelu */
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    width: 480px;
    max-width: 100%;
    padding: 40px 36px;
    box-shadow: 
        0 20px 45px -12px rgba(15, 23, 42, 0.08), 
        0 4px 12px -2px rgba(15, 23, 42, 0.04),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.brand-badge.warning {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

.login-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #2563eb;
    margin-bottom: 12px;
}

.security-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 4px 12px;
    border-radius: 20px;
}

.notice-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.78rem;
    color: #1e3a8a;
    line-height: 1.45;
    margin-bottom: 20px;
}

.notice-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 2px;
}

.notice-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.78rem;
    color: #92400e;
    line-height: 1.45;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 0.95rem;
    pointer-events: none;
    opacity: 0.6;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 42px 12px 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #0f172a;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field-hint {
    font-size: 0.71rem;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.35;
}

.btn-toggle-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-toggle-eye:hover {
    opacity: 1;
}

.btn-primary {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary.success {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-primary.success:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.alert-box {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    animation: shake 0.3s;
}

.alert-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.login-footer p {
    font-size: 0.73rem;
    color: #64748b;
}
