/* Authentication Form Styles */
.ecorepair-auth-container {
    max-width: 500px;
    margin: 40px auto;
    background: none;
    border-radius: 12px;
    box-shadow: none;
    padding: 40px 32px 32px 32px;
    font-family: inherit !important;
}

.ecorepair-auth-header {
    background: none;
    padding: 0 0 24px 0;
    border-bottom: none;
    text-align: left;
}

.ecorepair-auth-header h1 {
    display: none;
}

.ecorepair-auth-header p {
    display: none;
}

.ecorepair-auth-tabs {
    display: flex;
    border-bottom: 2.5px solid #ddd;
    background: none;
    margin-bottom: 32px;
    font-family: inherit !important;
}

.ecorepair-tab-btn {
    flex: 1;
    padding: 16px 0 10px 0;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 22px;
    font-weight: 400;
    color: #888;
    transition: color 0.2s;
    border-bottom: 2.5px solid transparent;
    font-family: inherit !important;
}

.ecorepair-tab-btn.active {
    color: #111;
    font-weight: 500;
    border-bottom: 3.5px solid #111;
    background: none;
}

.ecorepair-tab-btn:not(.active):hover {
    color: #222;
}

.ecorepair-auth-content {
    padding: 0;
}

.ecorepair-form-group {
    margin-bottom: 24px;
    font-family: inherit !important;
}

.ecorepair-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #222;
    font-size: 19px;
}

.ecorepair-form-group input[type="text"],
.ecorepair-form-group input[type="email"],
.ecorepair-form-group input[type="password"],
.ecorepair-form-group input[type="tel"],
.ecorepair-form-group select,
.ecorepair-form-group textarea {
    width: 100%;
    padding: 16px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    background: #fff;
    color: #222;
    transition: border-color 0.2s;
    margin-bottom: 0;
    font-family: inherit !important;
}

/* Global border-radius for all ecorepair elements */
.ecorepair-dropdown-trigger,
.ecorepair-dropdown-menu {
    border-radius: 5px !important;
}

.ecorepair-dropdown-menu {
    border-radius: 0 0 5px 5px !important;
}

/* Error message styling for dropdowns */
.ecorepair-custom-dropdown + .error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Ensure dropdown functionality is preserved during error state */
.ecorepair-form-group.error .ecorepair-dropdown-trigger {
    border-color: #dc3545 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Legacy select styles (for backward compatibility) */
.ecorepair-form-group select {
    color: #888 !important;
}

.ecorepair-form-group select:focus {
    color: #222 !important;
}

.ecorepair-form-group select.selected {
    color: #222 !important;
}

.ecorepair-form-group input:focus,
.ecorepair-form-group select:focus,
.ecorepair-form-group textarea:focus {
    outline: none;
    border-color: #222;
}

.ecorepair-form-row {
    display: flex;
    gap: 16px;
}

.ecorepair-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.ecorepair-radio-label,
.ecorepair-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #222;
    font-size: 17px;
}

.ecorepair-radio-label input[type="radio"],
.ecorepair-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
}

.ecorepair-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    background: #f5f5f5;
    color: #222;
    margin-top: 16px;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    font-family: inherit !important;
}

.ecorepair-btn:active,
.ecorepair-btn:focus {
    background: #eaeaea;
    color: #111;
}

.ecorepair-btn-primary {
    background: #f5f5f5;
    color: #222;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: none;
    border: none;
}

.ecorepair-btn-primary:hover {
    background: #eaeaea;
    color: #111;
}

.ecorepair-btn-secondary {
    background: #ffa726;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: none;
    border: none;
}

.ecorepair-btn-secondary:hover {
    background: #ff9800;
    color: #fff;
}

.next-step {
    background: #66bb6a !important;
    color: #fff !important;
    border-radius: 5px !important;
}

.next-step:hover {
    background: #4caf50 !important;
    color: #fff !important;
}

/* Submit button style */
.ecorepair-register-form button[type="submit"] {
    background: #2196f3 !important;
    color: #fff !important;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: none;
    border: none;
}

.ecorepair-register-form button[type="submit"]:hover {
    background: #1976d2 !important;
    color: #fff !important;
}

/* Password wrapper styles */
.ecorepair-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.ecorepair-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 5px;
    user-select: none;
    font-size: 18px;
    color: #888;
    transition: color 0.2s;
}

.ecorepair-password-toggle:hover {
    color: #222;
}

.ecorepair-eye-icon {
    display: inline-block;
}

.ecorepair-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 24px;
}

/* Multi-step form styles */
.ecorepair-form-step {
    display: none;
}

.ecorepair-form-step.active {
    display: block;
}

/* Customer form styles */
.private-customer,
.business-customer {
    display: none;
    margin-top: 20px;
}

.private-customer.show,
.business-customer.show {
    display: block;
}

.customer-form h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #222;
    font-weight: 500;
}

/* Progress indicator */
.ecorepair-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.ecorepair-progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin: 0 20px;
    transition: all 0.3s;
}

.ecorepair-progress-step.active {
    background: #222;
    color: #fff;
}

.ecorepair-progress-step.completed {
    background: #4CAF50;
    color: #fff;
}

/* Error states */
.ecorepair-form-group.error input,
.ecorepair-form-group.error select,
.ecorepair-form-group.error .ecorepair-dropdown-trigger {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

/* Additional styling for better visibility */
.ecorepair-form-group.error input:focus,
.ecorepair-form-group.error select:focus,
.ecorepair-form-group.error .ecorepair-dropdown-trigger:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.4) !important;
    outline: none !important;
}

/* Error state for all field types */
.ecorepair-form-group.error input[type="text"],
.ecorepair-form-group.error input[type="email"],
.ecorepair-form-group.error input[type="password"],
.ecorepair-form-group.error input[type="tel"],
.ecorepair-form-group.error input[type="url"],
.ecorepair-form-group.error textarea {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    display: block;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 4px;
    animation: errorFadeIn 0.3s ease-in;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Label styling for error state */
.ecorepair-form-group.error label {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* Messages */
.ecorepair-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.ecorepair-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ecorepair-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Remove all previous progress, password strength, and accent styles */
.ecorepair-password-strength,
.ecorepair-password-strength-bar,
.ecorepair-password-strength-bar-fill {
    display: none !important;
}

.ecorepair-auth-footer {
    background: none;
    padding: 0;
    text-align: left;
    border-top: none;
    color: #888;
    font-size: 14px;
    margin-top: 32px;
}

.ecorepair-lang-switcher-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    margin-top: 24px;
    background: none;
    z-index: 1000;
    position: relative;
}

.ecorepair-tab-content {
    display: none;
}
.ecorepair-tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .ecorepair-auth-container {
        padding: 18px 6px 12px 6px;
        border-radius: 8px;
    }
    .ecorepair-form-row {
        flex-direction: column;
        gap: 0;
    }
    .ecorepair-btn {
        width: 100%;
        text-align: center;
    }
}

.ecorepair-register-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 28px 0;
    height: 6px;
    background: none;
    font-family: inherit !important;
}
.ecorepair-register-progress-segment {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 0 2px;
    transition: background 0.3s;
}
.ecorepair-register-progress-segment.active {
    background: #888;
}

.ecorepair-lang-switcher {
    background: none;
    color: #888;
    border: none;
    font-size: 18px;
    font-weight: 400;
    margin-left: 18px;
    cursor: pointer;
    padding: 0 8px;
    height: 38px;
    line-height: 38px;
    transition: color 0.2s;
    outline: none;
    box-shadow: none;
    vertical-align: middle;
}
.ecorepair-lang-switcher:hover, .ecorepair-lang-switcher:focus {
    color: #222;
    background: none;
}

.ecorepair-auth-container, .ecorepair-auth-container *, .ecorepair-auth-container body {
    font-family: inherit !important;
}

.ecorepair-loading .ecorepair-btn-primary {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.ecorepair-btn-loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top: 2px solid #888;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
