/* =========================================================================
   login-refresh.css (2026-09-23) - strony bez logowania (layout no_access):
   logowanie, reset/przypomnienie hasla, aktywacja konta, wsparcie.
   Paleta i typografia jak w panelu (panel-refresh.css / header-refresh.css).
   Ladowana JAKO OSTATNIA w View/Layouts/no_access.ctp.
   ========================================================================= */

/* ------- tlo i uklad ------- */
html body.login {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(230,0,92,.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(28,28,36,.08), transparent 60%),
        #f4f5f7 !important;
    color: #111827;
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.login:before {
    /* pasek marki na gorze, jak w naglowku panelu */
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e6005c;
    z-index: 5;
}
.pui-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px 24px;
    box-sizing: border-box;
}
.pui-auth-logo { margin: 0 0 22px; }
.pui-auth-logo img {
    display: block;
    height: 46px;
    width: auto;
    /* tlo pliku logo nie jest idealnie biale - rozjasniamy je do bieli,
       a multiply "wycina" biel na tle strony */
    filter: brightness(1.06) contrast(1.08);
    mix-blend-mode: multiply;
}
.pui-auth-foot {
    margin: 22px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

/* ------- karta z formularzem ------- */
body.login .content,
body.login .content.support {
    width: 100% !important;
    max-width: 400px;
    margin: 0 !important;
    padding: 32px 32px 28px !important;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.08);
}
body.login .content.support { max-width: 560px; }
body.login .content .form-title,
body.login .content h3 {
    font-family: inherit !important;
    margin: 0 0 6px !important;
    font-size: 22px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
    color: #111827 !important;
    text-align: left !important;
}
body.login .content > p,
body.login .content .pui-auth-lead {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: #6b7280;
}

/* ------- pola ------- */
body.login .content .form-group { margin: 0 0 16px; }
body.login .content .control-label,
body.login .content label {
    display: block !important;   /* stary szablon chowal etykiety (visible-ie8) */
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
body.login .content .control-label.visible-ie8 { display: none !important; }
body.login .content .form-control {
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #111827;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}
body.login .content textarea.form-control { height: auto; min-height: 120px; }
body.login .content .form-control::placeholder { color: #9ca3af; }
body.login .content .form-control:focus {
    border-color: #e6005c !important;
    box-shadow: 0 0 0 3px rgba(230,0,92,.15) !important;
    outline: 0;
}
body.login .content .has-error .form-control { border-color: #ef4444 !important; }
body.login .content .help-block,
body.login .content .error-message {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #b91c1c;
}

/* pokaz / ukryj haslo */
body.login .pui-auth-password { position: relative; }
body.login .pui-auth-password .form-control { padding-right: 46px; }
body.login .pui-auth-eye {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 38px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 15px;
    cursor: pointer;
}
body.login .pui-auth-eye:hover { color: #374151; background: #f3f4f6; }
body.login .pui-auth-eye:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(230,0,92,.25); }

/* ------- akcje ------- */
body.login .content .form-actions {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    clear: both;
}
body.login .content .form-actions:before,
body.login .content .form-actions:after { display: none; }
body.login .content .pui-auth-row {
    justify-content: flex-end;
    margin: -4px 0 20px !important;
}
body.login .content a:not(.btn) {
    color: #c2004e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
body.login .content a:not(.btn):hover { color: #e6005c; text-decoration: underline; }

body.login .content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 14.5px;
    font-weight: 600;
    text-transform: none !important;
    box-shadow: none !important;
    float: none !important;
    transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
body.login .content .btn:active { transform: translateY(1px); }
body.login .content .btn.green-haze,
body.login .content .btn.btn-success,
body.login .content .btn.green {
    background: #e6005c !important;
    border: 1px solid #e6005c !important;
    color: #ffffff !important;
}
body.login .content .btn.green-haze:hover,
body.login .content .btn.btn-success:hover,
body.login .content .btn.green:hover {
    background: #c2004e !important;
    border-color: #c2004e !important;
}
body.login .content .btn.btn-default {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
}
body.login .content .btn.btn-default:hover { background: #f9fafb !important; border-color: #9ca3af !important; }
body.login .content .btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(230,0,92,.25) !important; }
body.login .content .pui-auth-submit { width: 100%; }
body.login .content .pui-auth-submit .fa { font-size: 13px; transition: transform .15s ease; }
body.login .content .pui-auth-submit:hover .fa { transform: translateX(3px); }
/* pozostale formularze (reset, aktywacja, wsparcie): przycisk glowny po prawej */
body.login .content .form-actions .btn-success,
body.login .content .form-actions .green-haze:not(.pui-auth-submit) { margin-left: auto !important; }

/* ------- komunikaty ------- */
body.login .pui-auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.login .pui-auth-error .fa { font-size: 16px; color: #ef4444; }
body.login .alert {
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13.5px;
    padding: 12px 14px;
    margin: 0 0 16px;
}
body.login #flashMessage,
body.login .pui-auth > .message {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    background: #ffffff;
    color: #991b1b !important;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(16,24,40,.05);
}
body.login .pui-auth-note {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 0 14px !important;
    padding: 14px 16px !important;
    border: 1px solid #fde68a !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 10px !important;
    background: #fffbeb !important;
    color: #78350f;
}
body.login .pui-auth-note > .fa {
    font-size: 18px;
    color: #d97706;
    margin-top: 2px;
}
body.login .pui-auth-note h4 {
    margin: 0 0 4px !important;
    font-size: 14px;
    font-weight: 650;
    color: #78350f;
}
body.login .pui-auth-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

/* ------- telefon ------- */
@media (max-width: 480px) {
    .pui-auth { justify-content: flex-start; padding-top: 36px; }
    body.login .content { padding: 24px 20px 22px !important; border-radius: 12px !important; }
    .pui-auth-logo img { height: 40px; }
}
