/**
 * Style dla strony rejestracji
 */


.yokaba-register-form-wrapper {
    max-width: 506px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: white;
    position: relative;
    z-index: 2;
    width: 100%;
}

.yokaba-register-page-wrapper {
    background-image: url('.../assets/images/image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    min-height: 100vh;
}


.yokaba-register-form-wrapper {
    width: 100%;
    max-width: 528px;
    border: 1px solid #E0E0E0;
}

.yokaba-register-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #1D1C1A;
    margin: 0 0 16px 0;
    padding: 0;
}

.yokaba-register-description {
    font-size: 16px;
    line-height: 24px;
    color: #666;
    margin: 0 0 32px 0;
}

.yokaba-register-description a {
    color: #A88466;
    text-decoration: underline;
    font-weight: 600;
}

.yokaba-register-description a:hover {
    color: #8a6d52;
}

.yokaba-register-form-wrapper .woocommerce-form-register {
    display: flex;
    flex-direction: column;

}

.yokaba-register-form-wrapper .form-row {
    margin: 0;
    padding: 0;
}

.yokaba-register-form-wrapper .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #1D1C1A;
    margin-bottom: 8px;
}

.yokaba-register-form-wrapper .form-row .required {
    color: #dc2626;
}

/* Wrapper dla inputów z ikoną błędu */
.yokaba-register-input-wrapper {
    position: relative;
    width: 100%;
}

.yokaba-register-form-wrapper .form-row input[type="text"],
.yokaba-register-form-wrapper .form-row input[type="email"],
.yokaba-register-form-wrapper .form-row input[type="tel"],
.yokaba-register-form-wrapper .form-row input[type="password"],
.yokaba-register-form-wrapper .form-row input[type="date"],
.woocommerce-Input.woocommerce-Input--text {
    width: 100%;
    padding: 12px 16px;
    padding-right: 44px; /* Miejsce na ikonę błędu */
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 24px;
    color: #1D1C1A;
    background: white;
    transition: border-color 0.2s;
}

.yokaba-register-form-wrapper .form-row input:focus {
    outline: none;
    border-color: #A88466;
    box-shadow: 0 0 0 3px rgba(168, 132, 102, 0.1);
}

.yokaba-register-form-wrapper .form-row input.error {
    border-color: #dc2626;
    padding-right: 44px;
}

/* Ukryj domyślną walidację HTML5 dla pustych pól przed interakcją użytkownika */
.yokaba-register-form-wrapper .form-row input:invalid {
    border-color: #E0E0E0;
}

/* Pokaż błąd tylko po interakcji użytkownika (touched) - używamy klasy touched dodawanej przez JS */
.yokaba-register-form-wrapper .form-row input.touched:invalid {
    border-color: #dc2626;
}

/* Ikona błędu */
.yokaba-field-error-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.yokaba-register-form-wrapper .yokaba-field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    line-height: 16px;
    margin-top: 4px;
}

.yokaba-register-form-wrapper .form-row-wide.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.yokaba-register-form-wrapper .form-row-wide.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.yokaba-register-form-wrapper .form-row-wide.checkbox label {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #1D1C1A;
    cursor: pointer;
}

.yokaba-register-form-wrapper .woocommerce-form-register__submit {
    width: 100%;
    padding: 16px 24px;
    background: #A88466;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}


.yokaba-register-privacy-text {
    font-size: 12px;
    line-height: 16px;
    color: #999;
    margin-top: 24px;
}

/* Style dla pól hasła */
.yokaba-register-password-wrapper {
    position: relative;
}

.yokaba-register-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.yokaba-register-password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.yokaba-register-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.yokaba-register-password-toggle:hover {
    color: #A88466;
}

.yokaba-register-password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Wskaźnik siły hasła */
.yokaba-register-password-strength-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.yokaba-register-password-strength-text {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    color: #10B981;
    margin-bottom: 0;
}

.yokaba-register-password-strength-bars {
    display: flex;
    gap: 4px;
    width: 100%;
}

.yokaba-register-password-strength-bar {
    height: 4px;
    flex: 1;
    background: #E5E7EB;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.yokaba-register-password-strength-bar.yokaba-strength-weak {
    background: #EF4444;
}

.yokaba-register-password-strength-bar.yokaba-strength-medium {
    background: #F59E0B;
}

.yokaba-register-password-strength-bar.yokaba-strength-good {
    background: #10B981;
}

.yokaba-register-password-strength-bar.yokaba-strength-strong {
    background: #10B981;
}

/* Wymagania hasła */
.yokaba-register-password-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.yokaba-register-password-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: #1D1C1A;
    transition: opacity 0.3s;
}

.yokaba-register-password-requirement .yokaba-requirement-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.yokaba-register-password-input-wrapper input.error {
    border-color: #dc2626;
}

.yokaba-register-page-wrapper {
    background-image: url('./assets/images/image.png');
    background-size: 70% 100%;
    background-position: right;
    background-repeat: no-repeat;
    position: relative;
}


/* Responsive */
@media (max-width: 1024px) {
    .yokaba-register-form-wrapper {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .yokaba-register-form-wrapper {
        padding: 32px 24px;
    }
	
    .yokaba-register-title {
        font-size: 24px;
        line-height: 32px;
    }

    .yokaba-register-page-wrapper{
        background: none !important;
    }

    .yokaba-register-page-container{
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Pole numeru telefonu z dropdownem kraju */
.yokaba-phone-wrapper {
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100%;
}

 .yokaba-register-form-wrapper .form-row input[type="date"] {
	 width: -webkit-fill-available;
}

.yokaba-phone-country {
    min-width: 120px !important;
    width: auto !important;
    max-width: 180px !important;
    height: 50px !important;
    padding: 10px 40px 10px 14px !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 0px !important;
    font-size: 16px !important;
    color: #1D1C1A !important;
    background-color: white !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231D1C1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

.yokaba-phone-country:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #A88466, 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.yokaba-register-form-wrapper .form-row input[name="billing_phone"] {
    flex: 1 !important;
}

.yokaba-register-form-wrapper .woocommerce-form-register__submit:hover,
.woocommerce-form-row button.yokaba-lost-password-submit-btn:hover {
    border-color: transparent !important;
    border: none !important;
    background-color: #253237   !important;
    color: #fff !important;
}
