/**
 * My Account / Auth Styles
 *
 * Login and Registration form customizations
 *
 * @package BlocksyChild
 * @since 1.0.0
 */

/* Auth Wrapper */
.cs-auth-wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 20px;
}

.cs-auth-container {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(90, 66, 45, 0.08);
}

/* Header */
.cs-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.cs-auth-title {
    font-size: 28px;
    font-weight: 600;
    color: #5A422D;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cs-auth-subtitle {
    font-size: 15px;
    color: #8B7355;
    margin: 0;
}

/* Form */
.cs-auth-container .woocommerce-form {
    margin: 0;
    padding: 0;
    border: none;
}

.cs-auth-container .form-row {
    margin-bottom: 20px;
    padding: 0;
}

.cs-auth-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5A422D;
    margin-bottom: 8px;
}

.cs-auth-container .required {
    color: #D86B80;
}

.cs-auth-container input.input-text {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #E8DDD0;
    border-radius: 12px;
    background: #FAF8F5;
    color: #5A422D;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cs-auth-container input.input-text:focus {
    outline: none;
    border-color: #C4A77D;
    box-shadow: 0 0 0 3px rgba(196, 167, 125, 0.1);
}

/* Password Field */
.cs-auth-container .password-input {
    position: relative;
    display: block;
}

/* Forgot Password Link */
.cs-auth-container .lost_password {
    text-align: right;
    margin: -8px 0 20px;
}

.cs-auth-container .lost_password a {
    font-size: 13px;
    color: #8B7355;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cs-auth-container .lost_password a:hover {
    color: #5A422D;
}

/* Remember Me Checkbox */
.cs-auth-container .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5A422D;
    cursor: pointer;
    margin-bottom: 20px;
}

.cs-auth-container .woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #5A422D;
}

/* Submit Button */
.cs-auth-container .woocommerce-form-login__submit,
.cs-auth-container .woocommerce-form-register__submit {
    width: 100%;
    padding: 16px 24px;
    background: #5A422D;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cs-auth-container .woocommerce-form-login__submit:hover,
.cs-auth-container .woocommerce-form-register__submit:hover {
    background: #3D2B1F;
    transform: translateY(-1px);
}

/* Auth Switch (Login/Register toggle) */
.cs-auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E8DDD0;
}

.cs-auth-switch p {
    margin: 0;
    font-size: 14px;
    color: #8B7355;
}

.cs-auth-link {
    color: #5A422D;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cs-auth-link:hover {
    color: #3D2B1F;
}

/* My Account Dashboard Navigation */
.woocommerce-MyAccount-navigation {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(90, 66, 45, 0.06);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation li:last-child {
    margin-bottom: 0;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 16px;
    color: #5A422D;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
    color: #f33514;
    border: none;
}

/* My Account Content Area */
.woocommerce-MyAccount-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(90, 66, 45, 0.06);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #5A422D;
    margin-top: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cs-auth-wrapper {
        margin: 20px auto;
    }

    .cs-auth-container {
        padding: 24px;
        border-radius: 16px;
    }

    .cs-auth-title {
        font-size: 24px;
    }

    .cs-auth-container input.input-text {
        padding: 12px 14px;
    }

    .cs-auth-container .woocommerce-form-login__submit,
    .cs-auth-container .woocommerce-form-register__submit {
        padding: 14px 20px;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
    }
}

/* Custom Dashboard Layout */
.cs-my-account {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cs-account-header {
    text-align: center;
    margin-bottom: 40px;
}

.cs-account-title {
    font-size: 32px;
    font-weight: 600;
    color: #5A422D;
    margin: 0 0 8px;
}

.cs-account-title strong {
    font-weight: 700;
}

.cs-account-subtitle {
    font-size: 16px;
    color: #8B7355;
    margin: 0;
}

.cs-account-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.cs-account-sidebar {
    /* Navigation container */
}

.cs-account-content {
    /* Main content container */
}

/* Mobile Responsive for Dashboard */
@media (max-width: 768px) {
    .cs-my-account {
        padding: 20px 16px;
    }

    .cs-account-title {
        font-size: 24px;
    }

    .cs-account-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .woocommerce-MyAccount-navigation {
        padding: 16px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .woocommerce-MyAccount-navigation li {
        margin-bottom: 0;
    }

    .woocommerce-MyAccount-navigation a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Password Field with Toggle */
.cs-password-field .password-input-wrap {
    position: relative;
    display: block;
}

.cs-password-field input {
    padding-right: 48px !important;
}

.cs-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #8B7355;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-toggle-password:hover {
    color: #5A422D;
}

/* Password Strength Meter */
.cs-password-strength {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 18px;
}

.cs-password-strength.weak {
    color: #e74c3c;
}

.cs-password-strength.medium {
    color: #f39c12;
}

.cs-password-strength.strong {
    color: #27ae60;
}

/* Terms Checkbox */
.cs-terms-field {
    margin-top: 16px;
}

.cs-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #5A422D;
    cursor: pointer;
    line-height: 1.5;
}

.cs-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #5A422D;
    flex-shrink: 0;
}

.cs-checkbox a {
    color: #5A422D;
    font-weight: 600;
    text-decoration: underline;
}

.cs-checkbox a:hover {
    color: #3D2B1F;
}

.woocommerce-MyAccount-tabs {
    float: left;
    width: 100% !important;
    margin-right: 6%;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-tabs {
        float: left;
         width: auto !important;
        margin-right: 6%;
    }
}
