/*
 Theme Name:   My Listing Child
 Theme URI:    https://quitwise.com.au/my-listing-child
 Description:  Child theme for the My Listing theme
 Author:       Ivan
 Author URI:   https://example.com
 Template:     my-listing
 Version:      1.0.0
 Text Domain:  my-listing-child
*/

/* Login Page Container */
.custom-login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 89px);
    /* Account for header height */
    background-color: #F2F8FF;
}

/* Header styling - add this to your theme or customize as needed */
.site-header,
header.site-header,
.site-branding,
#masthead {
    background-color: #1a0046 !important;
    /* Dark purple from the image */
}

/* Login Box */
.login-box {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    margin-bottom: 20px;
    margin-top: -60px;
}

.login-box h2 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: left;
    color: #1a1a1a;
}

/* Form Fields */
.woocommerce-form-row {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.floating-label {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 14px;
    color: #666;
    pointer-events: none;
    transition: 0.2s ease all;
}

.woocommerce-Input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s;
}

.woocommerce-Input:focus {
    outline: none;
    border-bottom: 2px solid #ffbe42;
}

/* For password field with dots */
input[type="password"] {
    font-weight: bold;
    letter-spacing: 2px;
}

/* Floating label behavior */
.woocommerce-Input:focus+.floating-label,
.woocommerce-Input.has-value+.floating-label,
.woocommerce-Input.focused+.floating-label {
    top: -12px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.woocommerce-Input:focus~.password-toggle {
    color: #ffbe42;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 10px;
    color: #555;
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Sign in Button */
.signin-button {
    margin-top: 25px;
}

.woocommerce-button {
    width: 100%;
    background-color: #ffbe42;
    border: none;
    color: #000;
    font-weight: 600;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.woocommerce-button:hover {
    background-color: #f0b030;
}

.woocommerce-button svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Remember Me */
.remember-me-row {
    margin: 15px 0 20px;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #000;
}

/* Basic checkbox styling */
.woocommerce-form__input-checkbox {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    outline: none !important;
    /* Prevent outline */
    box-shadow: none !important;
    /* Prevent box-shadow */
}

/* Only apply custom styling if supported */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .woocommerce-form__input-checkbox {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 3px;
        position: relative;
        box-sizing: border-box;
        min-width: 16px;
        min-height: 16px;
        display: inline-block;
    }

    .woocommerce-form__input-checkbox:focus {
        outline: none;
        box-shadow: none;
    }

    .woocommerce-form__input-checkbox:checked {
        background-color: #ffbe42;
        border-color: #ffbe42;
    }

    .woocommerce-form__input-checkbox:checked:after {
        content: '';
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        display: block;
    }
}

/* Forgot Password */
.woocommerce-LostPassword {
    text-align: left;
    margin: 0;
}

.woocommerce-LostPassword a {
    color: #4834b4;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.woocommerce-LostPassword a:hover {
    text-decoration: none !important;
}

.woocommerce-LostPassword .lock-icon {
    margin-right: 5px;
    color: #aaa;
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Register Box */
.register-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    text-align: left;
}

.register-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
}

.register-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-weight: 500 !important;
}

/* Hide elements we don't need */
span.required {
    display: none;
}

.finder-search .lc-icon {
	display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {

    .login-box,
    .register-box {
        padding: 20px 15px;
    }
}