/* Verdeno Garden - Account Pages Styles */

/* Login and Register Pages */
.verdeno-login-page,
.verdeno-register-page {
    background: linear-gradient(135deg, #F8FBF3 0%, #E1EBE2 100%);
    min-height: calc(100vh - 200px);
}

.verdeno-login-page .container,
.verdeno-register-page .container {
    margin-top: 80px;
}

/* Account Container */
.verdeno-account-container {
    padding: 80px 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #F8FBF3 0%, #E1EBE2 100%);
    display: flex;
    align-items: center;
}

/* Form Cards */
.verdeno-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(53, 78, 51, 0.08);
    max-width: 500px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.verdeno-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(53, 78, 51, 0.12);
}

/* Form Title */
.form-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 30px;
}

/* Form Controls */
.verdeno-form-card .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    height: 48px;
}

.verdeno-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(53, 78, 51, 0.1);
    outline: none;
}

/* Input Groups - Seamless Design */
.verdeno-form-card .input-group {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    background: white;
}

.verdeno-form-card .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(53, 78, 51, 0.1);
}

.verdeno-form-card .input-group-text {
    background-color: #f8f9fa;
    border: none !important;
    border-right: 1px solid #e0e0e0 !important;
    color: var(--primary-color);
    padding: 0 15px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.verdeno-form-card .input-group .form-control {
    border: none !important;
    padding: 12px 15px;
    height: 48px;
    background: transparent;
}

.verdeno-form-card .input-group .form-control:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Password Toggle Button - Seamless Design */
.verdeno-form-card .input-group .btn-outline-secondary,
#toggleRegPassword,
#togglePassword,
.input-group button[type="button"] {
    border: none !important;
    border-left: 1px solid #e0e0e0 !important;
    background: white !important;
    color: #666 !important;
    padding: 0 !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
}

.verdeno-form-card .input-group .btn-outline-secondary:hover,
#toggleRegPassword:hover,
#togglePassword:hover {
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
    width: 48px !important;
    height: 48px !important;
}

.verdeno-form-card .input-group .btn-outline-secondary:focus,
.verdeno-form-card .input-group .btn-outline-secondary:active,
#toggleRegPassword:focus,
#toggleRegPassword:active,
#togglePassword:focus,
#togglePassword:active {
    box-shadow: none !important;
    outline: none !important;
    background: white !important;
    width: 48px !important;
    height: 48px !important;
}

/* Prevent any content from being added */
.verdeno-form-card .input-group .btn-outline-secondary::before,
.verdeno-form-card .input-group .btn-outline-secondary::after,
#toggleRegPassword::before,
#toggleRegPassword::after,
#togglePassword::before,
#togglePassword::after {
    display: none !important;
    content: none !important;
}

/* Icon inside button */
.verdeno-form-card .input-group .btn-outline-secondary i,
#toggleRegPassword i,
#togglePassword i {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
}

/* Input group icons */
.verdeno-form-card .input-group-text i {
    font-size: 18px !important;
    color: var(--primary-color);
}

/* Labels */
.verdeno-form-card label {
    color: var(--title-font-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.verdeno-form-card .required {
    color: #e74c3c;
}

/* Primary Button - Override WooCommerce styles */
.verdeno-form-card .btn-verdeno,
.verdeno-login-page .btn-verdeno,
.verdeno-register-page .btn-verdeno,
.woocommerce button.btn-verdeno,
button.btn-verdeno {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: white !important;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    line-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    text-align: center !important;
}

.verdeno-form-card .btn-verdeno:hover,
.verdeno-login-page .btn-verdeno:hover,
.verdeno-register-page .btn-verdeno:hover,
.woocommerce button.btn-verdeno:hover,
button.btn-verdeno:hover {
    background: var(--bg-dark-2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(53, 78, 51, 0.3) !important;
    color: white !important;
    height: 50px !important;
}

.verdeno-form-card .btn-verdeno:active,
.verdeno-form-card .btn-verdeno:focus,
.verdeno-login-page .btn-verdeno:active,
.verdeno-login-page .btn-verdeno:focus,
.verdeno-register-page .btn-verdeno:active,
.verdeno-register-page .btn-verdeno:focus,
.woocommerce button.btn-verdeno:active,
.woocommerce button.btn-verdeno:focus,
button.btn-verdeno:active,
button.btn-verdeno:focus {
    background: var(--bg-dark-2) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(53, 78, 51, 0.2) !important;
    outline: none !important;
    color: white !important;
    height: 50px !important;
}

.verdeno-form-card .btn-verdeno:disabled,
.verdeno-login-page .btn-verdeno:disabled,
.verdeno-register-page .btn-verdeno:disabled,
.woocommerce button.btn-verdeno:disabled,
button.btn-verdeno:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    height: 50px !important;
}

/* Prevent WooCommerce from changing button height */
.woocommerce-form button[type="submit"],
.woocommerce button.button {
    height: auto !important;
    min-height: unset !important;
}


/* Form Footer */
.form-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.form-footer p {
    color: #666;
    margin: 0;
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.strength-bar-fill.weak {
    width: 33% !important;
    background-color: #e74c3c !important;
}

.strength-bar-fill.medium {
    width: 66% !important;
    background-color: #f39c12 !important;
}

.strength-bar-fill.strong {
    width: 100% !important;
    background-color: #354e33 !important;
}

.strength-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.strength-text.weak {
    color: #e74c3c;
}

.strength-text.medium {
    color: #f39c12;
}

.strength-text.strong {
    color: var(--primary-color);
}

/* Lost Password Link */
.lost-password a {
    color: var(--secondary-color);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lost-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Checkbox Styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(53, 78, 51, 0.1);
}

/* WooCommerce Notices */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.woocommerce-error:before,
.woocommerce-info:before,
.woocommerce-message:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.woocommerce-error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #721c24;
}

.woocommerce-error:before {
    content: '\f06a';
    color: #e74c3c;
}

.woocommerce-info {
    background: #e7f3ff;
    border-left: 4px solid #3498db;
    color: #004085;
}

.woocommerce-info:before {
    content: '\f05a';
    color: #3498db;
}

.woocommerce-message {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.woocommerce-message:before {
    content: '\f00c';
    color: var(--primary-color);
}

/* My Account Navigation */
.woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 18px 25px;
    color: var(--body-font-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 35px;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--primary-color);
    color: white;
}

.woocommerce-MyAccount-navigation ul li a:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before {
    content: '\f3fd';
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before {
    content: '\f07a';
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a:before {
    content: '\f019';
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before {
    content: '\f015';
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before {
    content: '\f007';
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    content: '\f2f5';
}

/* My Account Content */
.woocommerce-MyAccount-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Disable ripple effects on our buttons */
.btn-verdeno.ripple-surface .ripple-wave {
    display: none !important;
}

/* Button Loading State - Complete Override */
.btn-verdeno.is-loading,
.verdeno-form-card button.is-loading,
button.btn-verdeno.is-loading,
.woocommerce button.btn-verdeno.loading,
.btn-verdeno.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    min-height: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Button text styling */
.btn-verdeno .btn-text,
.btn-verdeno.is-loading .btn-text,
.btn-verdeno.btn-loading .btn-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    line-height: 50px !important;
    opacity: 0.3 !important;
}

/* Spinner element */
.btn-spinner {
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -10px !important;
    margin-left: -10px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: white !important;
    animation: spinner 0.6s linear infinite !important;
    z-index: 10 !important;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Completely block WooCommerce from changing button */
.woocommerce form button[type="submit"],
.woocommerce form button[type="submit"].loading,
.woocommerce form button[type="submit"].processing {
    min-height: 50px !important;
    height: 50px !important;
    line-height: 1 !important;
    -webkit-text-stroke: 0 !important;
    font-weight: 600 !important;
}

/* Remove WooCommerce's ::after loading spinner */
.woocommerce button.button.loading::after,
.woocommerce button.btn-verdeno.loading::after,
.woocommerce form button[type="submit"].loading::after {
    display: none !important;
    content: none !important;
}

/* Prevent any content from being added */
.woocommerce button[type="submit"]:before,
.woocommerce button[type="submit"]:after {
    display: none !important;
}

/* Override Bootstrap button states */
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle {
    width: 48px !important;
    height: 48px !important;
    background: white !important;
    border: none !important;
    border-left: 1px solid #e0e0e0 !important;
}

/* Prevent MDB ripple effects */
.btn-outline-secondary .ripple-wave {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .verdeno-account-container {
        padding: 40px 15px;
    }
    
    .verdeno-form-card {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .btn-verdeno {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
    }
}