/* Ukrycie nagłówka strony "Moje konto" tylko na ekranie logowania/rejestracji */
.woocommerce-account:not(.logged-in) .entry-header,
.woocommerce-account:not(.logged-in) .entry-title,
.woocommerce-account:not(.logged-in) .page-header {
    display: none !important;
}

/* Kontener i karta - wyśrodkowanie */
.custom-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 30px 20px;
}

.custom-auth-card {
    background: #ffffff;
    max-width: 480px; /* Nieco węższa karta wygląda lepiej przy układzie jedno-kolumnowym */
    width: 100%;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #e5e7eb;
}

/* Wymuszamy mniejszy gap na klasie z Twojego motywu */
.custom-auth-card .tw-account-details-form {
    gap: 12px !important; 
}

/* Nowa klasa układająca pola pod sobą */
.auth-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Zmniejszona "luka" pomiędzy polami (domyślnie było 24px/16px) */
}

/* Nagłówki autoryzacyjne - mniejsze odstępy */
.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header .auth-icon {
    margin-bottom: 8px;
}

.auth-header .tw-page-title {
    text-align: center;
    margin-bottom: 4px;
}

.auth-header .tw-page-subtitle {
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Opcje pod polem hasła (Zapamiętaj mnie, Zresetuj) */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px; /* Zmniejszony górny margines by przytulić do inputu */
    font-size: 13.5px;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.auth-options input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.auth-options .forgot-link {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.auth-options .forgot-link:hover {
    text-decoration: underline;
}


.tw-auth-btn {
    display: block !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
    min-height: 52px !important;
    padding: 14px 20px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--season-text, #111827) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
    transition: filter 0.2s ease;
}

.tw-auth-btn:hover {
    filter: brightness(.94);
}

/* Stopka u dołu do przełączania formularzy */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    font-size: 14px;
    color: #6b7280;
}

.auth-footer a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Telefony komórkowe */
@media (max-width: 768px) {
    .custom-auth-card {
        padding: 24px 20px;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
    border: none;
    padding: 20px;
    margin: 2em 0;
    text-align: left;
    border-radius: 5px;
}

/* Kontener główny - wyśrodkowanie */
.custom-lost-password-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

/* Karta formularza */
.custom-lost-password-card {
    background: #ffffff;
    max-width: 450px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

/* Nagłówek */
.lost-password-header {
    text-align: center;
    margin-bottom: 30px;
}

.lost-password-header .lock-icon {
    color: #111;
    margin-bottom: 15px;
}

.lost-password-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #111;
}

.lost-password-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Pola formularza */
.custom-lost-password-form .form-row {
    margin-bottom: 20px;
    width: 100%;
}

.custom-lost-password-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #111;
}

.custom-lost-password-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.custom-lost-password-form input[type="text"]:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 1px #111;
}

/* Przycisk resetowania */
.custom-lost-password-form .form-actions {
    margin-bottom: 0;
}

.custom-lost-password-form button[type="submit"] {
    width: 100%;
    background-color: #111;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-lost-password-form button[type="submit"]:hover {
    background-color: #333;
}

/* Stopka z powrotem do logowania */
.lost-password-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.lost-password-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.lost-password-footer a:hover {
    color: #111;
}