/**
 * ZooPet Auth - Style logowania i rejestracji
 * 
 * @package LoyaltyClub
 * @since 4.1.0
 * @updated 4.1.5 - Poprawione wszystkie style, dodana opcja fullscreen
 */

/* === ZMIENNE === */
:root {
    --zoopet-auth-primary: #6366f1;
    --zoopet-auth-primary-light: rgba(99, 102, 241, 0.1);
    --zoopet-auth-primary-hover: rgba(99, 102, 241, 0.9);
    --zoopet-auth-text: #1f2937;
    --zoopet-auth-text-light: #6b7280;
    --zoopet-auth-border: #e5e7eb;
    --zoopet-auth-bg: #ffffff;
    --zoopet-auth-bg-light: #f9fafb;
    --zoopet-auth-error: #ef4444;
    --zoopet-auth-success: #10b981;
    --zoopet-auth-radius: 12px;
    --zoopet-auth-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* === RESET === */
.zoopet-auth-wrapper,
.zoopet-auth-wrapper * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* === UKRYJ DOMYŚLNE WC STYLE === */
body.zoopet-auth-page .woocommerce-form-login,
body.zoopet-auth-page .woocommerce-form-register,
body.zoopet-auth-page .woocommerce-ResetPassword,
body.zoopet-auth-page .u-columns,
body.zoopet-auth-page .col-1,
body.zoopet-auth-page .col-2 {
    display: none !important;
}

/* ============================================
   TRYB PEŁNOEKRANOWY (ukrywa menu/footer motywu)
   ============================================ */
body.zoopet-auth-fullscreen {
    margin: 0 !important;
    padding: 0 !important;
}

body.zoopet-auth-fullscreen #page,
body.zoopet-auth-fullscreen #content,
body.zoopet-auth-fullscreen #primary,
body.zoopet-auth-fullscreen #main,
body.zoopet-auth-fullscreen .site-content,
body.zoopet-auth-fullscreen .content-area,
body.zoopet-auth-fullscreen main,
body.zoopet-auth-fullscreen article,
body.zoopet-auth-fullscreen .entry-content,
body.zoopet-auth-fullscreen .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.zoopet-auth-fullscreen .site-header,
body.zoopet-auth-fullscreen header.site-header,
body.zoopet-auth-fullscreen #masthead,
body.zoopet-auth-fullscreen .site-footer,
body.zoopet-auth-fullscreen footer.site-footer,
body.zoopet-auth-fullscreen #colophon,
body.zoopet-auth-fullscreen #sidebar,
body.zoopet-auth-fullscreen aside,
body.zoopet-auth-fullscreen .widget-area,
body.zoopet-auth-fullscreen .site-branding,
body.zoopet-auth-fullscreen .main-navigation,
body.zoopet-auth-fullscreen .site-info,
body.zoopet-auth-fullscreen .site-navigation,
body.zoopet-auth-fullscreen .nav-menu,
body.zoopet-auth-fullscreen .primary-menu,
body.zoopet-auth-fullscreen .secondary-menu,
body.zoopet-auth-fullscreen .breadcrumbs,
body.zoopet-auth-fullscreen .breadcrumb,
body.zoopet-auth-fullscreen .woocommerce-breadcrumb {
    display: none !important;
}

/* Motywy blokowe nie maja .site-header ani #colophon — naglowek i stopke
   rysuja jako <header class="wp-block-template-part"> i <footer …>.
   Bez tych dwoch regul „pelny ekran" zostawial menu nad formularzem i
   cala stopke pod nim. Celujemy w znacznik, nie w sama klase: template
   part bywa tez trescia strony i tej ukrywac nie wolno. */
body.zoopet-auth-fullscreen > .wp-site-blocks > header.wp-block-template-part,
body.zoopet-auth-fullscreen > .wp-site-blocks > footer.wp-block-template-part,
body.zoopet-auth-fullscreen header.wp-block-template-part,
body.zoopet-auth-fullscreen footer.wp-block-template-part,
/* Tytul strony „Moje konto" nad formularzem psuje pelny ekran tak samo
   jak menu — w motywie blokowym to osobny blok, nie czesc tresci. */
body.zoopet-auth-fullscreen .wp-block-post-title,
body.zoopet-auth-fullscreen .entry-title,
body.zoopet-auth-fullscreen .page-title {
    display: none !important;
}

/* === WRAPPER === */
.zoopet-auth-wrapper {
    /* Kroj pisma to najmocniejszy sygnal stylu — bez niego Elegancki
       preset mial szeryfowy panel i bezszeryfowe logowanie. */
    font-family: var(--zoopet-auth-font, inherit);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Gdy NIE fullscreen - dopasuj do kontenera */
/* 80vh trzymalo pol ekranu pustki pod szescioma polami. Przy pelnym
   ekranie wysrodkowanie robi 100vh nizej; poza nim formularz ma zajmowac
   tyle, ile potrzebuje. */
body.zoopet-auth-page:not(.zoopet-auth-fullscreen) .zoopet-auth-wrapper {
    min-height: auto;
}

/* Gdy fullscreen - 100vh */
body.zoopet-auth-fullscreen .zoopet-auth-wrapper {
    min-height: 100vh;
}

/* ============================================
   STYL: NOWOCZESNY (SPLIT) - NA PEŁNĄ SZEROKOŚĆ
   ============================================ */
.zoopet-auth-split {
    display: flex;
    min-height: inherit;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.zoopet-auth-split .zoopet-auth-form-side {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    background: var(--zoopet-auth-bg);
    max-width: 50%;
}

.zoopet-auth-split .zoopet-auth-image-side {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f0f23 0%, #1a1a3e 50%, #0d1b2a 100%) !important;
}

.zoopet-auth-image-content {
    text-align: center;
    padding: 36px 32px;
    max-width: 420px;
    z-index: 2;
    position: relative;
}

/* === NAGŁÓWEK PANELU BOCZNEGO === */
.zoopet-auth-side-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.zoopet-auth-side-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.zoopet-auth-side-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.zoopet-auth-side-club-name {
    display: block;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

/* === TYTUŁ === */
.zoopet-auth-side-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px;
    color: #fff;
    letter-spacing: 0.5px;
}

.zoopet-auth-image-icon {
    font-size: 60px;
    margin-bottom: 24px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zoopet-auth-image-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px;
    color: #fff;
    letter-spacing: 0.5px;
}

.zoopet-auth-image-content p {
    font-size: 15px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

/* === KORZYŚCI - ELEGANCKI STYL === */
.zoopet-auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.zoopet-auth-benefits li {
    padding: 14px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.zoopet-auth-benefits li:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.zoopet-auth-benefits li:last-child {
    margin-bottom: 0;
}

.zoopet-auth-benefits li.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.zoopet-auth-benefits li .benefit-icon {
    font-size: 20px;
    min-width: 28px;
    text-align: center;
}

.zoopet-auth-benefits li .benefit-text {
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    line-height: 1.4;
}

/* === DEKORACJE === */
.zoopet-auth-side-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.decoration-circle.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: pulse 8s ease-in-out infinite;
}

.decoration-circle.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: pulse 6s ease-in-out infinite 1s;
}

.decoration-circle.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* ============================================
   STYL: WYŚRODKOWANY - BEZ KOLOROWEGO TŁA
   ============================================ */
.zoopet-auth-centered {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zoopet-auth-bg, #f5f7fa);
    padding: 24px 20px;
}

/* Przy pelnym ekranie gradient rysuje <body>. Wlasne tlo tej warstwy
   przykrywaloby go szarym prostokatem. */
body.zoopet-auth-fullscreen .zoopet-auth-centered {
    background: transparent;
}

.zoopet-auth-centered .zoopet-auth-card {
    background: var(--zoopet-auth-card-bg, #fff);
    border-radius: var(--zoopet-auth-radius, 24px);
    padding: 32px 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--zoopet-auth-shadow, 0 10px 30px -12px rgba(15, 23, 42, .18));
}

.zoopet-auth-centered .zoopet-auth-card-tabs {
    max-width: 540px;
}

/* ============================================
   STYL: MINIMALISTYCZNY - POPRAWIONA SZEROKOŚĆ
   ============================================ */
.zoopet-auth-minimal {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    /* Bez tla, cienia i ramki: „Minimal" ma byc samym formularzem.
       Wczesniej bral tlo STRONY (--zoopet-auth-bg) i robil sie z tego
       kafel w kolorze tla — w Eleganckim krem na kremie. */
    background: none;
    box-shadow: none;
}

/* ============================================
   WSPÓLNE ELEMENTY
   ============================================ */

/* Logo */
.zoopet-auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.zoopet-auth-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.zoopet-auth-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--zoopet-auth-text);
}

/* Header */
.zoopet-auth-header {
    margin-bottom: 32px;
}

.zoopet-auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--zoopet-auth-text);
    margin: 0 0 8px;
}

.zoopet-auth-subtitle {
    font-size: 15px;
    color: var(--zoopet-auth-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Bonus badge */
.zoopet-auth-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 10px 16px;
    border-radius: 100px;
    margin-top: 16px;
}

.zoopet-auth-bonus-icon {
    font-size: 20px;
}

.zoopet-auth-bonus-text {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

/* Form */
.zoopet-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Nested form fix */
.zoopet-auth-wrapper.zoopet-auth-none .zoopet-auth-wrapper {
    min-height: auto;
}

.zoopet-auth-none {
    display: block;
}

.zoopet-auth-none .zoopet-auth-header {
    display: none;
}

/* Field */
.zoopet-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zoopet-auth-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--zoopet-auth-text);
}

.zoopet-auth-row {
    display: flex;
    gap: 16px;
}

.zoopet-auth-field-half {
    flex: 1;
}

/* Input wrapper */
.zoopet-auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.zoopet-auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.zoopet-auth-input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    border: 2px solid var(--zoopet-auth-border);
    border-radius: var(--zoopet-auth-radius);
    font-size: 15px;
    transition: all 0.2s;
    background: var(--zoopet-auth-bg);
    color: var(--zoopet-auth-text);
}

.zoopet-auth-input-wrapper input:focus {
    outline: none;
    border-color: var(--zoopet-auth-primary);
    box-shadow: 0 0 0 4px var(--zoopet-auth-primary-light);
}

.zoopet-auth-input-wrapper input::placeholder {
    color: #9ca3af;
}

/* Toggle password */
.zoopet-auth-toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.zoopet-auth-toggle-password:hover {
    opacity: 1;
}

/* Password strength */
.zoopet-auth-password-strength {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Options row */
.zoopet-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.zoopet-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--zoopet-auth-text);
}

.zoopet-auth-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--zoopet-auth-primary);
}

.zoopet-auth-forgot {
    color: var(--zoopet-auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.zoopet-auth-forgot:hover {
    text-decoration: underline;
}

/* Checkbox */
.zoopet-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--zoopet-auth-text-light);
    line-height: 1.5;
}

.zoopet-auth-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--zoopet-auth-primary);
    flex-shrink: 0;
}

.zoopet-auth-checkbox a {
    color: var(--zoopet-auth-primary);
}

/* Error & Success */
.zoopet-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--zoopet-auth-error);
    padding: 12px 16px;
    border-radius: var(--zoopet-auth-radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoopet-auth-error::before {
    content: '⚠️';
}

.zoopet-auth-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: var(--zoopet-auth-success);
    padding: 12px 16px;
    border-radius: var(--zoopet-auth-radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoopet-auth-success::before {
    content: '✅';
}

/* Button */
.zoopet-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--zoopet-auth-radius-btn, var(--zoopet-auth-radius, 12px));
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.zoopet-auth-btn-primary {
    background: var(--zoopet-auth-primary);
    color: #fff;
}

.zoopet-auth-btn-primary:hover {
    background: var(--zoopet-auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.zoopet-auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.zoopet-auth-btn-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.zoopet-auth-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--zoopet-auth-border);
}

.zoopet-auth-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--zoopet-auth-text-light);
}

.zoopet-auth-footer a {
    color: var(--zoopet-auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.zoopet-auth-footer a:hover {
    text-decoration: underline;
}

/* Logged in message */
.zoopet-auth-logged-in {
    text-align: center;
    padding: 40px;
    background: var(--zoopet-auth-bg-light);
    border-radius: var(--zoopet-auth-radius);
}

.zoopet-auth-logged-in p {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--zoopet-auth-text);
}

/* Tabs */
.zoopet-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    background: var(--zoopet-auth-bg-light);
    border-radius: var(--zoopet-auth-radius);
    padding: 4px;
}

.zoopet-auth-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--zoopet-auth-text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.zoopet-auth-tab:hover {
    color: var(--zoopet-auth-text);
}

.zoopet-auth-tab.active {
    background: var(--zoopet-auth-bg);
    color: var(--zoopet-auth-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.zoopet-auth-tab-content {
    display: none;
}

.zoopet-auth-tab-content.active {
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .zoopet-auth-split .zoopet-auth-image-side {
        display: none;
    }
    
    .zoopet-auth-split .zoopet-auth-form-side {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 60px 40px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .zoopet-auth-split .zoopet-auth-form-side {
        flex: 0 0 55%;
        max-width: 55%;
    }
    
    .zoopet-auth-split .zoopet-auth-image-side {
        flex: 0 0 45%;
    }
    
    .zoopet-auth-image-content {
        padding: 40px 30px;
    }
    
    .zoopet-auth-benefits li {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .zoopet-auth-side-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .zoopet-auth-split .zoopet-auth-form-side {
        padding: 40px 24px;
    }
    
    .zoopet-auth-centered .zoopet-auth-card {
        padding: 32px 24px;
        border-radius: 20px;
        margin: 0 16px;
    }
    
    .zoopet-auth-minimal {
        padding: 0 16px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .zoopet-auth-title {
        font-size: 24px;
    }
    
    .zoopet-auth-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .zoopet-auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .zoopet-auth-split .zoopet-auth-form-side {
        padding: 24px 16px;
    }
    
    .zoopet-auth-centered .zoopet-auth-card {
        padding: 24px 20px;
    }
    
    .zoopet-auth-minimal {
        padding: 24px 20px;
        margin: 16px;
    }
    
    .zoopet-auth-logo {
        justify-content: center;
    }
    
    .zoopet-auth-header {
        text-align: center;
    }
    
    .zoopet-auth-bonus {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   OVERRIDE WC PAGE - ROZSZERZENIE NA 100%
   ============================================ */
body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account:not(.logged-in) .zoopet-menu-header {
    display: none !important;
}

/* Ukryj tytuł strony na logowaniu */
body.woocommerce-account:not(.logged-in) .entry-title,
body.woocommerce-account:not(.logged-in) .page-title,
body.woocommerce-account:not(.logged-in) h1.entry-title,
body.woocommerce-account:not(.logged-in) h1.page-title,
body.woocommerce-account:not(.logged-in) .entry-header,
body.woocommerce-account:not(.logged-in) article > header {
    display: none !important;
}

/* Rozszerzenie kontenera na 100% */
body.woocommerce-account:not(.logged-in) #page,
body.woocommerce-account:not(.logged-in) .site,
body.woocommerce-account:not(.logged-in) #content,
body.woocommerce-account:not(.logged-in) #primary,
body.woocommerce-account:not(.logged-in) .site-content,
body.woocommerce-account:not(.logged-in) .content-area,
body.woocommerce-account:not(.logged-in) main.site-main,
body.woocommerce-account:not(.logged-in) .site-main,
body.woocommerce-account:not(.logged-in) article,
body.woocommerce-account:not(.logged-in) .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Zoopet auth wrapper na 100% */
body.woocommerce-account:not(.logged-in) .zoopet-auth-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* ════════════════════════════════════════════════════════════
   POLISH 4.3.3 - poprawki desktop + mobile dla wszystkich stylów
   ════════════════════════════════════════════════════════════ */

/* Lepszy padding inputów (ponowne ustawienie - lepsze tap targets) */
.zoopet-auth-input-wrapper input {
    padding: 14px 16px 14px 46px;
    min-height: 48px;
}

/* Większe, wyraźniejsze przyciski submit */
.zoopet-auth-btn-primary {
    min-height: 50px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Tabbed switcher - większe taby na mobile */
.zoopet-auth-tab {
    min-height: 44px;
    font-weight: 600;
}

/* Hover/focus stany */
.zoopet-auth-input-wrapper:has(input:focus) {
    transform: translateY(-1px);
    transition: transform .15s ease;
}

/* Cien tylko dla karty na kolorowym tle. „Minimal" to sam formularz —
   cien robil z niego trzecie pudelko na bialej stronie. */
.zoopet-auth-centered .zoopet-auth-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* Linki - czytelniejsze */
.zoopet-auth-forgot,
.zoopet-auth-footer a {
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}
.zoopet-auth-forgot:hover,
.zoopet-auth-footer a:hover {
    text-decoration: underline;
}

/* reCAPTCHA wewnątrz formularza - ładnie wyśrodkowana z odstępem */
.zoopet-auth-form .zoopet-recaptcha-wrap {
    margin: 8px 0 16px !important;
    display: flex;
    justify-content: center;
}
/* Kompaktowy widget reCAPTCHA dopasowany do wąskiego mobila */
@media (max-width: 380px) {
    .zoopet-auth-form .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Mobile - jeszcze lepsze padding w polach */
@media (max-width: 768px) {
    .zoopet-auth-input-wrapper input {
        font-size: 16px; /* Apple iOS nie zoomuje przy >= 16px */
        padding: 14px 14px 14px 44px;
    }
    .zoopet-auth-input-icon {
        left: 12px;
        font-size: 16px;
    }
    .zoopet-auth-toggle-password {
        right: 10px;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Większe odstępy między polami na mobile */
    .zoopet-auth-form {
        gap: 14px;
    }
    /* Mocniejszy nagłówek na mobile */
    .zoopet-auth-title {
        font-size: 22px;
        line-height: 1.25;
    }
    /* Tabs mocniejsze i pełnej szerokości */
    .zoopet-auth-tabs {
        width: 100%;
    }
    .zoopet-auth-tab {
        flex: 1;
        font-size: 14px;
        padding: 12px 8px;
    }

    /* Ukrywaj dekorację bocznego panelu na mobile - splita składamy w pionie */
    .zoopet-auth-image-side {
        min-height: 140px;
        padding: 24px 20px !important;
    }
    .zoopet-auth-image-side .zoopet-auth-image-content {
        max-width: 100%;
    }
    .zoopet-auth-benefits li {
        padding: 8px 12px !important;
        font-size: 13px;
    }
}

/* Mobile XS - bardzo wąskie ekrany */
@media (max-width: 380px) {
    .zoopet-auth-centered .zoopet-auth-card,
    .zoopet-auth-minimal {
        margin: 8px;
        padding: 22px 16px;
    }
    .zoopet-auth-title {
        font-size: 20px;
    }
    .zoopet-auth-input-wrapper input {
        padding-left: 40px;
    }
    .zoopet-auth-input-icon {
        left: 10px;
    }
}

/* ════════════════════════════════════════════════════════════
   FIX 4.3.3 - ikony w polach nie zachodzą na tekst
   Wymuszamy padding-left z !important, bo motywy/WC resetują paddingi
   ════════════════════════════════════════════════════════════ */
.zoopet-auth-wrapper .zoopet-auth-input-wrapper {
    position: relative;
}
.zoopet-auth-wrapper .zoopet-auth-input-wrapper input {
    padding-left: 50px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}
.zoopet-auth-wrapper .zoopet-auth-input-wrapper input[type="password"] {
    padding-right: 48px !important;
}
.zoopet-auth-wrapper .zoopet-auth-input-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    line-height: 1 !important;
    width: 22px !important;
    text-align: center !important;
}
.zoopet-auth-wrapper .zoopet-auth-toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    background: none !important;
    border: none !important;
    padding: 4px 6px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Mobile - większy padding-left żeby ikona miała oddech */
@media (max-width: 768px) {
    .zoopet-auth-wrapper .zoopet-auth-input-wrapper input {
        padding-left: 46px !important;
        font-size: 16px !important;
    }
    .zoopet-auth-wrapper .zoopet-auth-input-icon {
        left: 14px !important;
        font-size: 16px !important;
    }
}

/* ════════════════════════════════════════════════════════════
   FIX 4.3.3 - boczny baner reaguje na kolor z ustawień
   Klasa zoopet-auth-image-side ma w PHP inline-style background z linear-gradient,
   ale reguła z CSS na .zoopet-auth-image-side nadpisywała inline z ciemnym fioletem.
   Dodajemy fallback przez CSS variable, którą PHP może nadpisać.
   ════════════════════════════════════════════════════════════ */
.zoopet-auth-wrapper .zoopet-auth-image-side {
    background: linear-gradient(135deg,
        var(--zoopet-auth-primary, var(--zoopet-primary, #6366f1)) 0%,
        var(--zoopet-auth-accent,  var(--zoopet-primary, #6366f1)) 100%) !important;
}

/* ═══ PRESETY: BILET / KIERUNKI / ŚWIT (7.102.0) ═══
   Trzy wejścia do klubu w światach presetów panelu klienta. */

/* — wspólne — */
.zoopet-auth-trasa { margin: 4px 0 14px; color: var(--zoopet-auth-text-light); }
.zoopet-auth-trasa svg { width: 100%; height: 40px; display: block; overflow: visible; }
.zoopet-auth-trasa-podpis { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--zoopet-auth-text-light); }

/* — Bilet: karta pokładowa — */
.zoopet-auth-bilet { display: flex; justify-content: center; padding: 26px 12px; }
.zoopet-auth-pass { display: grid; grid-template-columns: minmax(0, 1fr) 250px; width: min(860px, 100%);
    background: var(--zoopet-auth-bg); border: 1px solid var(--zoopet-auth-border); border-radius: 18px;
    box-shadow: 0 2px 3px rgba(15,23,42,.05), 0 18px 44px -16px rgba(15,23,42,.2); overflow: hidden; }
.zoopet-auth-pass-glowna { padding: 28px 32px; }
.zoopet-auth-odcinek { border-left: 2px dashed #cbd5e1; background: var(--zoopet-auth-bg-light);
    padding: 26px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.zoopet-auth-odcinek::before, .zoopet-auth-odcinek::after { content: ''; position: absolute; left: -9px;
    width: 16px; height: 16px; border-radius: 50%; background: var(--zoopet-auth-bg-light); border: 1px solid var(--zoopet-auth-border); }
.zoopet-auth-odcinek::before { top: -9px; }
.zoopet-auth-odcinek::after { bottom: -9px; }
.zoopet-auth-naklejka { background: var(--zoopet-auth-primary-light); border: 1px dashed var(--zoopet-auth-primary);
    border-radius: 10px; padding: 10px 12px; text-align: center; }
.zoopet-auth-naklejka span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--zoopet-auth-text-light); }
.zoopet-auth-naklejka b { display: block; font-size: 21px; color: var(--zoopet-auth-primary); font-variant-numeric: tabular-nums; }
.zoopet-auth-odcinek ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 12.5px; color: var(--zoopet-auth-text); }
.zoopet-auth-odcinek ul span { margin-right: 4px; }
.zoopet-auth-kreski { height: 40px; border-radius: 4px; margin-top: auto;
    background: repeating-linear-gradient(90deg, var(--zoopet-auth-text) 0 2px, transparent 2px 5px, var(--zoopet-auth-text) 5px 6px, transparent 6px 11px, var(--zoopet-auth-text) 11px 14px, transparent 14px 17px); }
.zoopet-auth-kod { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; letter-spacing: .1em;
    color: var(--zoopet-auth-text-light); text-align: center; }
.zoopet-auth-bilet .zoopet-auth-field label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 760px) {
    .zoopet-auth-pass { grid-template-columns: 1fr; }
    .zoopet-auth-odcinek { border-left: 0; border-top: 2px dashed #cbd5e1; }
    .zoopet-auth-odcinek::before { top: -9px; left: -9px; }
    .zoopet-auth-odcinek::after { top: -9px; bottom: auto; left: auto; right: -9px; }
}

/* — Kierunki: tablica odlotów — */
.zoopet-auth-kierunki { display: flex; justify-content: center; padding: 26px 12px; }
.zoopet-auth-kier { display: grid; grid-template-columns: 320px minmax(0, 1fr); width: min(880px, 100%);
    background: var(--zoopet-auth-bg); border-radius: 18px; overflow: hidden;
    box-shadow: 0 2px 3px rgba(15,23,42,.06), 0 20px 50px -18px rgba(15,23,42,.3); }
.zoopet-auth-tablica-pas { background: linear-gradient(165deg, var(--zoopet-auth-primary-hover), var(--zoopet-auth-primary));
    color: #fff; padding: 26px 22px; display: flex; flex-direction: column; }
.zoopet-auth-tablica-etyk { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.zoopet-auth-tablica-pas h2 { color: #fff; font-size: 21px; letter-spacing: -.01em; margin: 4px 0 16px; }
.zoopet-auth-tablica { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.zoopet-auth-tablica .rzad { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px;
    padding: 10px 12px; background: rgba(0,0,0,.18); align-items: center; }
.zoopet-auth-tablica .godz { font-family: ui-monospace, Consolas, monospace; font-weight: 700; opacity: .9; }
.zoopet-auth-tablica .chip-t { font-size: 10px; font-weight: 800; letter-spacing: .08em;
    background: rgba(255,255,255,.18); border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.zoopet-auth-tablica-stopka { margin: auto 0 0; padding-top: 14px; font-size: 12px; opacity: .75; }
.zoopet-auth-kier-forma { padding: 28px 32px; }
@media (max-width: 760px) { .zoopet-auth-kier { grid-template-columns: 1fr; } }

/* — Świt: horyzont — */
.zoopet-auth-wrapper.zoopet-auth-swit { position: relative; overflow: hidden; display: flex; align-items: center;
    justify-content: center; padding: 46px 16px; min-height: 620px; border-radius: 0;
    background: linear-gradient(180deg, #101d3f 0%, #16337e 34%, #a86186 62%, #e88a8a 78%, #f7d9c4 100%); }
body.zoopet-auth-fullscreen .zoopet-auth-wrapper.zoopet-auth-swit { min-height: 100vh; }
.zoopet-auth-wrapper.zoopet-auth-swit::before { content: ''; position: absolute; left: 50%; top: 68%;
    width: 130px; height: 130px; margin: -65px; border-radius: 50%;
    background: radial-gradient(circle at 42% 38%, #fff, #f7d9c4 55%, #e88a8a); box-shadow: 0 0 90px 40px rgba(247,217,196,.45); }
.zoopet-auth-wrapper.zoopet-auth-swit::after { content: ''; position: absolute; left: 0; right: 0; top: 68%;
    height: 1px; background: rgba(255,255,255,.35); }
.zoopet-auth-swit-karta { position: relative; z-index: 2; width: min(430px, 100%);
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 20px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 26px 28px; color: #fff;
    box-shadow: 0 24px 60px -20px rgba(10,15,40,.55); }
.zoopet-auth-swit-karta .zoopet-auth-title, .zoopet-auth-swit-karta .zoopet-auth-logo-text { color: #fff; }
.zoopet-auth-swit-karta .zoopet-auth-subtitle, .zoopet-auth-swit-karta .zoopet-auth-field label,
.zoopet-auth-swit-karta .zoopet-auth-remember span, .zoopet-auth-swit-karta .zoopet-auth-footer p,
.zoopet-auth-swit-karta .zoopet-auth-checkbox span { color: rgba(255,255,255,.78); }
.zoopet-auth-swit-karta .zoopet-auth-input-wrapper input { background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.3); color: #fff; }
.zoopet-auth-swit-karta .zoopet-auth-input-wrapper input::placeholder { color: rgba(255,255,255,.55); }
.zoopet-auth-swit-karta .zoopet-auth-forgot, .zoopet-auth-swit-karta .zoopet-auth-footer a { color: #f7d9c4; }
.zoopet-auth-swit-karta .zoopet-auth-btn-primary { background: linear-gradient(90deg, #e88a8a, #f7d9c4); color: #16337e; }
.zoopet-auth-swit-karta .zoopet-auth-bonus { background: rgba(247,217,196,.16); border: 1px solid rgba(247,217,196,.4); color: #f7d9c4; }
.zoopet-auth-swit-karta .zoopet-auth-tabs { background: rgba(255,255,255,.14); }
.zoopet-auth-swit-karta .zoopet-auth-tab { color: rgba(255,255,255,.7); }
.zoopet-auth-swit-karta .zoopet-auth-tab.active { background: rgba(255,255,255,.92); color: #16337e; }
