/* Strony logowania paneli (klient, firma, admin).
   Wczesniej inline w szablonach Security/login.html.twig modulow User (PanelClient, PanelCompany, Admin). */

:root {
    --bs-body-bg: #F8FAFC;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --indigo-50: #eef2ff;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --facebook-blue: #1877F2;
}

body {
    background-color: var(--bs-body-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--slate-900);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo-circle {
    width: 48px;
    height: 48px;
    background: var(--indigo-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.auth-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

/* POPRAWIONE INPUTY */
.input-group-custom {
    position: relative;
    display: block; /* Zapewnia, że input zajmuje całą szerokość */
    margin-bottom: 1.25rem;
}

.input-group-custom i,
.input-group-custom svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    transition: color 0.2s;
    pointer-events: none; /* Ikona nie blokuje kliknięcia w input */
    z-index: 10;
}

.form-control-custom {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
}

.form-control-custom:focus {
    outline: none;
    background: white;
    border-color: var(--indigo-600);
    box-shadow: 0 0 0 4px var(--indigo-50);
}

.form-control-custom:focus ~ i,
.form-control-custom:focus ~ svg {
    color: var(--indigo-600);
}

.btn-primary-custom {
    width: 100%;
    padding: 0.75rem;
    background: var(--indigo-600);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-primary-custom:hover {
    background: var(--indigo-700);
    transform: translateY(-1px);
}

.social-login {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.btn-social {
    flex: 1;
    height: 44px;
    border: 1px solid var(--slate-200);
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-social:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--slate-400);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--slate-100);
}

.divider:not(:empty)::before {
    margin-right: 1em;
}
.divider:not(:empty)::after {
    margin-left: 1em;
}

.hidden {
    display: none !important;
}
.font-black {
    font-weight: 900 !important;
}
.text-indigo-600 {
    color: var(--indigo-600) !important;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 14px;
    color: var(--slate-500);
}

.auth-link {
    color: var(--indigo-600);
    text-decoration: none;
    font-weight: 700;
}

.text-slate-500 { color: var(--slate-500) !important; }

/* panel klienta - barwy sklepu */
body.panel-client {
    --indigo-50: #fef2f2;
    --indigo-600: #dc2626;
    --indigo-700: #b91c1c;
}

body.panel-client .brand-logo-circle { box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3); }

a.brand-logo-circle { text-decoration: none; }
.brand-logo-circle svg { width: 24px; height: 24px; }

.auth-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f0fdfa;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-success-icon svg { width: 28px; height: 28px; }

.auth-card .alert { font-size: 14px; border-radius: 0.75rem; }
.auth-card .form-error, .auth-card ul li { font-size: 13px; color: #b91c1c; }
