/* Theme My Login Forms Styling */
/* ================================ */

/* Login Section */
.login-section {
    background: url('../images/bg.png') no-repeat 50%;
    background-size: cover;
    padding: 5% 0;
    min-height: auto;
    position: relative;
}

.login-section:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #00447C;
    opacity: 0.6;
}

/* Front Page Logos */
.front-logos {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.front-logos img {
    max-height: 48px;
}

/* Blue Box (Left Column) */
.blue-box {
    background: url('../images/bg.png') no-repeat 50%;
    color: #fff;
    margin-right: -30px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
    position: relative;
}

.blue-box:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #0063b8;
    opacity: 0.95;
}

.blue-box h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
}

.blue-box h3 strong {
    font-weight: 700;
}

.blue-box p {
    position: relative;
    z-index: 2;
}

/* White Box (Right Column - Forms Container) */
.white-box {
    background: #fff;
    padding: 25px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.white-box h2 {
    margin-bottom: 20px;
    color: #00447C;
    font-size: 24px;
    font-weight: 600;
}

/* Forms Block (Container for Login/Register Forms) */
.forms-block {
    overflow: hidden;
}

.forms-block__wrapper {
    display: flex;
    width: 200%;
    transition: 0.2s;
    align-items: center;
}

.forms-block__wrapper > div {
    width: 100%;
}

.forms-block__wrapper.show-register-form {
    margin-left: -100%;
}

/* Theme My Login Specific Styles */
/* ================================ */

/* Hide TML password strength indicators */
.tml-indicator-wrap,
.tml-indicator_hint-wrap {
    display: none !important;
}

/* Hide TML default links and forms */
.tml-links,
form > .form {
    display: none !important;
}

/* Form Fields Styling */
.tml-field-wrap {
    margin-bottom: 20px;
    text-align: left;
}

.tml-field-wrap label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.tml-field-wrap input[type="text"],
.tml-field-wrap input[type="email"],
.tml-field-wrap input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.tml-field-wrap input[type="text"]:focus,
.tml-field-wrap input[type="email"]:focus,
.tml-field-wrap input[type="password"]:focus {
    outline: none;
    border-color: #0063b8;
    box-shadow: 0 0 0 2px rgba(0, 99, 184, 0.1);
}

/* GDPR Accept Terms Checkbox */
.tml-accept_terms-wrap {
    width: 100%;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
}

.tml-accept_terms-wrap .tml-label {
    margin-top: 0 !important;
}

.tml-accept_terms-wrap input[type="checkbox"] {
    /* Custom checkbox styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0063b8;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tml-accept_terms-wrap input[type="checkbox"]:hover {
    border-color: #00447C;
    box-shadow: 0 0 0 2px rgba(0, 99, 184, 0.1);
}

.tml-accept_terms-wrap input[type="checkbox"]:checked {
    background-color: #0063b8;
    border-color: #0063b8;
}

.tml-accept_terms-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tml-accept_terms-wrap input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 99, 184, 0.2);
}

/* Terms Text */
.terms {
    text-align: left;
    font-size: 12px;
    padding-left: 5px;
    height: 36px;
    overflow: hidden;
    transition: height 0.3s;
}

.terms.show {
    height: auto;
}

.show-terms {
    padding: 5px 0;
    font-weight: 700;
    cursor: pointer;
    color: #0063b8;
    text-decoration: underline;
}

.show-terms:hover {
    color: #00447C;
}

.show-terms span {
    font-size: 12px;
}

/* Submit Button */
.tml-submit-wrap {
    margin-top: 25px;
}

.tml-submit-wrap input[type="submit"],
.tml-submit-wrap button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background-color: #0063b8;
    color: #fff;
    border: 1px solid #0063b8;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tml-submit-wrap input[type="submit"]:hover,
.tml-submit-wrap input[type="submit"]:focus,
.tml-submit-wrap button[type="submit"]:hover,
.tml-submit-wrap button[type="submit"]:focus {
    background-color: #00447C;
    border-color: #00447C;
    outline: none;
}

.tml-submit-wrap input[type="submit"]:active,
.tml-submit-wrap button[type="submit"]:active {
    transform: translateY(1px);
}

/* Error Messages */
.tml-errors,
.tml-alerts {
    margin-bottom: 20px;
}

/* Ukryj puste alerty (bez treści) */
.tml-errors:empty,
.tml-alerts:empty {
    display: none !important;
}

/* Ukryj alerty które mają tylko białe znaki */
.tml-errors:not(:has(*)),
.tml-alerts:not(:has(*)) {
    display: none !important;
}

.tml-errors ul,
.tml-alerts ul {
    margin: 0;
    padding-left: 20px;
}

.tml-errors li,
.tml-alerts li {
    margin-bottom: 5px;
}

.tml-errors li:last-child,
.tml-alerts li:last-child {
    margin-bottom: 0;
}

/* Success Messages */
.tml-messages {
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
}

.tml-messages ul {
    margin: 0;
    padding-left: 20px;
}

/* Remember Me Checkbox */
.tml-rememberme-wrap {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
}

.tml-rememberme-wrap label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.tml-rememberme-wrap input[type="checkbox"] {
    /* Custom checkbox styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0063b8;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tml-rememberme-wrap input[type="checkbox"]:hover {
    border-color: #00447C;
    box-shadow: 0 0 0 2px rgba(0, 99, 184, 0.1);
}

.tml-rememberme-wrap input[type="checkbox"]:checked {
    background-color: #0063b8;
    border-color: #0063b8;
}

.tml-rememberme-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tml-rememberme-wrap input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 99, 184, 0.2);
}

/* Login/Register Form Headings */
.login-form h2,
.register-form h2 {
    color: #00447C;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Message container */
#message {
    margin-bottom: 15px;
}

#message span {
    display: block;
    padding: 12px 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
}

/* Switch Link (Zaloguj się / Zarejestruj się) */
.tml-switch-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.tml-switch-link p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.tml-switch-link a {
    color: #0063b8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.tml-switch-link a:hover {
    color: #00447C;
    text-decoration: underline;
}

/* Single form containers */
.login-form-single,
.register-form-single {
    width: 100%;
}

/* ACF Fields Styling (Advanced Custom Fields) */
/* ============================================== */

/* Hide ACF form data and heading */
#acf-form-data {
    display: none !important;
}

.acf-user-register-fields + h2,
.acf-user-register-fields ~ h2 {
    display: none !important;
}

/* ACF Field Container */
.acf-fields > .acf-field {
    margin: 0px !important;
    width: 100%;
    margin-top: 40px !important;
}

.acf-fields > .acf-field input {
    height: 47px !important;
}

/* ACF Label */
.acf-label label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* ACF Required Asterisk */
.acf-required {
    color: #d32f2f;
    font-weight: 700;
}

/* ACF Input Fields */
.acf-input input[type="text"],
.acf-input input[type="email"],
.acf-input input[type="password"],
.acf-input input[type="number"],
.acf-input input[type="tel"],
.acf-input textarea,
.acf-input select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.acf-input input[type="text"]:focus,
.acf-input input[type="email"]:focus,
.acf-input input[type="password"]:focus,
.acf-input input[type="number"]:focus,
.acf-input input[type="tel"]:focus,
.acf-input textarea:focus,
.acf-input select:focus {
    outline: none;
    border-color: #0063b8;
    box-shadow: 0 0 0 2px rgba(0, 99, 184, 0.1);
}

/* GetResponse Checkbox */
.gr-comment-checkbox {
    margin-bottom: 20px;
    text-align: left;
}

.gr-comment-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.gr-comment-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0063b8;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gr-comment-checkbox input[type="checkbox"]:hover {
    border-color: #00447C;
    box-shadow: 0 0 0 2px rgba(0, 99, 184, 0.1);
}

.gr-comment-checkbox input[type="checkbox"]:checked {
    background-color: #0063b8;
    border-color: #0063b8;
}

.gr-comment-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gr-comment-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 99, 184, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blue-box {
        margin-right: 0;
        margin-bottom: 30px;
        min-height: 300px;
        padding: 30px 20px;
    }

    .white-box {
        padding: 20px 15px;
    }

    .tml-accept_terms-wrap {
        width: 100%;
        padding-left: 0;
    }

    .col-md-8.col-lg-6 {
        max-width: 100%;
        padding: 0 15px;
    }
}