/* Modern Two-Column Login/Register Form Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Main Container */
.wd-registration-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    max-width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #97588B 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Left Column - Image */
.wd-image-column {
    position: relative;
    background: #7aa83b;
    background-size: cover;
    background-position: top center;
    background-image: url(https://woonotif.com/wp-content/uploads/2025/10/bg-login-woonotif.webp);
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 3rem;
}

.wd-image-content {
    text-align: center;
    max-width: 100%;
    margin-top: 2rem;
    animation: fadeInLeft 1s ease-out;
}

.wd-image-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wd-image-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.wd-feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.wd-feature-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.wd-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Right Column - Form */
.wd-form-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow-y: auto;
    justify-content: center;
}

/* Tab Navigation */
.wd-tab-navigation {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.wd-tab-button {
    flex: 1;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.wd-tab-button:hover {
    background: #fff;
    color: #97588B;
}

.wd-tab-button.active {
    color: #97588B;
    border-bottom-color: #97588B;
    background: #fff;
}

.wd-tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #97588B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.wd-tab-button.active::after {
    width: 100%;
}

/* Form Container */
.wd-form-container {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Tab Content */
.wd-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.wd-tab-content.active {
    display: block;
}

/* Form Header */
.wd-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wd-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #97588B, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wd-form-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* Simple Form Field Styling */
.woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.woocommerce-form-row input,
.woocommerce-Input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

.woocommerce-form-row input:focus,
.woocommerce-Input:focus {
    outline: none;
    border-color: #97588B;
    box-shadow: 0 0 0 3px rgba(151, 88, 139, 0.1);
}

/* Required field indicator */
.required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 0.25rem;
}

/* Password field enhancements */
input[type="password"] {
    font-family: 'Inter', monospace;
    letter-spacing: 0.1em;
}

/* Email field enhancements */
input[type="email"] {
    text-transform: lowercase;
}

/* Enhanced Button Styling */
.woocommerce-Button,
.woocommerce-button,
button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #97588B 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.woocommerce-Button:hover,
.woocommerce-button:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(151, 88, 139, 0.4);
    background: linear-gradient(135deg, #7d4a73 0%, #6b46c1 100%);
}

.woocommerce-Button:active,
.woocommerce-button:active,
button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(151, 88, 139, 0.3);
}

/* Button ripple effect */
.woocommerce-Button::before,
.woocommerce-button::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.woocommerce-Button:active::before,
.woocommerce-button:active::before,
button[type="submit"]:active::before {
    width: 300px;
    height: 300px;
}

/* Form Links */
.wd-form-links {
    text-align: center;
    margin-top: 2rem;
}

.wd-form-links a {
    color: #97588B;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.wd-form-links a:hover {
    color: #7d4a73;
    text-decoration: underline;
}

.wd-form-links p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Password Info */
.password-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: #1e40af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Anti-spam field (hidden) */
.woocommerce-form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Form Validation States */
.woocommerce-form-row.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.woocommerce-form-row.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.woocommerce-form-row.error label {
    color: #ef4444;
}

.woocommerce-form-row.success label {
    color: #10b981;
}

/* Error Messages */
.woocommerce-error,
.woocommerce-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
    font-size: 0.9rem;
}

.woocommerce-message {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

/* Lost Password Form Specific Styles */
.wd-lost-password-page .wd-form-content {
    max-width: 400px;
    margin: 0 auto;
}

.wd-lost-password-content .wd-form-header {
    text-align: center;
    margin-bottom: 0;
}

.wd-lost-password-content .wd-form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #97588B, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wd-lost-password-content .wd-form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.wd-lost-password-content .wd-form-fields {
    margin-bottom: 1.5rem;
}

.wd-lost-password-content .wd-form-actions {
    margin-top: 1.5rem;
}

.wd-lost-password-content .wd-form-footer {
    text-align: center;
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.wd-lost-password-content .lost_reset_password {
    padding-top: 30px;
    padding-bottom: 10px;
}

.wd-lost-password-content .wd-form-link {
    margin: 0;
}

.wd-lost-password-content .wd-link {
    color: #97588B;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wd-lost-password-content .wd-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wd-registration-page {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 1fr;
    }
    
    .wd-image-column {
        padding: 2rem;
    }
    
    .wd-image-content h1 {
        font-size: 2.5rem;
    }
    
    .wd-image-content p {
        font-size: 1rem;
    }
    
    .wd-form-column {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .wd-registration-page {
        grid-template-rows: 35vh 1fr!important;
    }
    
    .wd-image-column {
        padding: 1.5rem;
        background-position: center;
    }
    
    .wd-image-content h1 {
        font-size: 2rem;
    }
    
    .wd-form-column {
        padding: 0;
    }
    
    .wd-form-title {
        font-size: 1.75rem;
    }
    
    .wd-tab-navigation {
        gap: 0;
    }
    
    .wd-tab-button {
        width: 100%;
        text-align: center;
    }

    .wd-lost-password-page .wd-form-content {
        padding: 40px;
    }
    
    .wd-lost-password-content .wd-form-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .wd-image-column {
        padding: 1rem;
    }
    
    .wd-form-column {
        padding: 0;
    }
    
    .wd-form-title {
        font-size: 1.5rem;
    }

    .wd-image-content img.wd-welcome-mascot {
        max-width: 80%;
    }
    
    .wd-image-content h1 {
        font-size: 1.75rem;
    }
    
    .wd-lost-password-content .wd-form-title {
        font-size: 1.5rem;
    }
}