*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0d1b2a;
    --teal: #1b6ca8;
    --teal-light: #2a89d1;
    --ice: #e8f4fd;
    --white: #ffffff;
    --gray-100: #f5f7fa;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --error: #dc2626;
    --success: #059669;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
body::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(27,108,168,0.3) 0%, transparent 70%);
    pointer-events: none;
}
body::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(27,108,168,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Left panel */
.panel-left {
    flex: 1;
    background: linear-gradient(145deg, #1b6ca8, #0d3f6b);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.panel-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    border: 40px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}
.panel-left::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    border: 30px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.brand {
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.brand h1 {
    font-size: 28px;
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
}

.brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.shift-legend {
    position: relative;
    z-index: 1;
}

.shift-legend p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
    font-weight: 500;
}

.shifts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shift-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.shift-badge span:first-child {
    width: 32px; height: 22px;
    background: rgba(255,255,255,0.12);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* Right panel */
.panel-right {
    width: 420px;
    background: var(--white);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-right h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.panel-right .subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    background: var(--gray-100);
    transition: all 0.2s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(27,108,168,0.1);
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: var(--teal-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,108,168,0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--error);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.footer-note {
    margin-top: 28px;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

@media (max-width: 700px) {
    .panel-left { display: none; }
    .panel-right { width: 100%; }
}

.webpartnersHref{
    color: white;
    text-decoration: none;
}

/* ---- Dodatki: pokazywanie hasła, komunikaty ---- */
[hidden] { display: none !important; }

.pw-wrap { position: relative; }
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] { padding-right: 76px; }

.pw-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer;
    font-size: 12px; font-weight: 600;
    color: var(--gray-500);
    padding: 5px 9px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
}
.pw-toggle:hover { background: #e8eef5; color: var(--teal); }

.info-msg {
    background: #e8f4fd;
    border: 1px solid #bae0f7;
    color: var(--teal);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.caps-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #b45309;
}
