/**
 * UXD WooCommerce Login Register Tabs - Styles
 * Version: 1.1.0
 */

/* Reset */
.uxd-login-register-wrapper,
.uxd-login-register-wrapper * {
    box-sizing: border-box;
}

/* Wrapper */
.uxd-login-register-wrapper {
    max-width: 450px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tabs Navigation */
.uxd-tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
    padding: 6px;
}

.uxd-tabs-nav .uxd-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    outline: none;
	box-shadow: none;
}

.uxd-tabs-nav .uxd-tab-btn:hover {
    color: #333;
    background: rgba(255, 255, 255, 0.5);
}

.uxd-tabs-nav .uxd-tab-btn.active {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.uxd-tabs-nav .uxd-tab-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.uxd-tabs-nav .uxd-tab-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Tabs Content */
.uxd-tabs-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 30px;
}

.uxd-tab-pane {
    display: none;
}

.uxd-tab-pane.active {
    display: block;
    animation: uxdFadeIn 0.3s ease;
}

@keyframes uxdFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.uxd-form-group {
    margin-bottom: 20px;
}

.uxd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.uxd-form-group label .required {
    color: #ef4444;
}

/* Input Wrapper */
.uxd-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.uxd-input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.uxd-input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    outline: none;
}

.uxd-input-wrapper input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.uxd-input-wrapper:focus-within .uxd-input-icon {
    color: #6366f1;
}

.uxd-input-wrapper input::placeholder {
    color: #9ca3af;
}

/* Toggle Password */
.uxd-login-form .uxd-toggle-password,
.uxd-register-form .uxd-toggle-password{
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    z-index: 1;
	box-shadow: none;
}

.uxd-toggle-password:hover {
    color: #6366f1;
}

/* Form Row */
.uxd-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Checkbox */
.uxd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
    font-weight: normal;
}

.uxd-checkbox-label input[type="checkbox"] {
    display: none;
}

.uxd-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.uxd-checkbox-label input[type="checkbox"]:checked + .uxd-checkmark {
    background: #6366f1;
    border-color: #6366f1;
}

.uxd-checkbox-label input[type="checkbox"]:checked + .uxd-checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Forgot Password */
.uxd-forgot-password {
    font-size: 14px;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.uxd-forgot-password:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Submit Button */
.uxd-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    outline: none;
}

.uxd-submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.uxd-submit-btn:active {
    transform: translateY(0);
}

.uxd-submit-btn.loading {
    pointer-events: none;
}

.uxd-submit-btn.loading .btn-text {
    opacity: 0;
}

.uxd-submit-btn .btn-loader {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: none;
}

.uxd-submit-btn.loading .btn-loader {
    opacity: 1;
    animation: uxdSpin 0.8s linear infinite;
}

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

/* Messages */
.uxd-form-messages {
    margin-bottom: 0;
}

.uxd-form-messages:empty {
    display: none;
}

.uxd-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.uxd-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.uxd-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.uxd-message::before {
    font-size: 18px;
    line-height: 1;
}

.uxd-message.success::before {
    content: '✓';
}

.uxd-message.error::before {
    content: '✕';
}

/* Password Strength */
.uxd-password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.uxd-password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.uxd-password-strength .strength-bar.weak {
    width: 25%;
    background: #ef4444;
}

.uxd-password-strength .strength-bar.fair {
    width: 50%;
    background: #f59e0b;
}

.uxd-password-strength .strength-bar.good {
    width: 75%;
    background: #10b981;
}

.uxd-password-strength .strength-bar.strong {
    width: 100%;
    background: #059669;
}

/* Privacy Policy */
.uxd-privacy-policy {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.uxd-privacy-policy a {
    color: #6366f1;
}

/* Logged In Message */
.uxd-logged-in-message {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.uxd-logged-in-message p {
    margin-bottom: 20px;
    color: #666;
}

.uxd-logged-in-message .uxd-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #6366f1;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.uxd-logged-in-message .uxd-btn:hover {
    background: #4f46e5;
}

/* Responsive */
@media (max-width: 480px) {
    .uxd-login-register-wrapper {
        margin: 0 15px;
    }
    
    .uxd-tabs-content {
        padding: 20px;
    }
    
    .uxd-tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .uxd-tab-btn span:not(.uxd-tab-icon) {
        display: none;
    }
    
    .uxd-tab-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .uxd-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}