/**
 * Viobin Authentication Forms - Login & Register
 * Modern side-by-side layout with responsive design
 */

/* Container */
.viobin-auth-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Wrapper - Side by Side Layout */
.viobin-auth-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: #F2F4F3;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(16, 57, 0, 0.1);
    border: 1px solid #CFD7CC;
    overflow: hidden;
    min-height: 600px;
}

/* Auth Columns */
.viobin-auth-column {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.viobin-login-column {
    background: #F2F4F3;
}

.viobin-register-column {
    background: #F2F4F3;
}

.viobin-auth-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Vertical Divider */
.viobin-auth-divider {
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #e0e0e0 20%, 
        #e0e0e0 80%, 
        transparent 100%
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.viobin-auth-divider-line {
    display: none;
}

.viobin-auth-divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.viobin-auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.viobin-auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #103900;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.viobin-auth-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.viobin-form {
    width: 100%;
}

.viobin-form-group {
    margin-bottom: 24px;
}

.viobin-form-label {
    display: block;
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #103900;
    margin-bottom: 8px;
    line-height: 1.4;
}

.viobin-form-label .required {
    color: #C12525;
    margin-left: 2px;
}

.viobin-form-input {
    width: 100%;
    padding: 12px 14px !important;
    border: 2px solid #CFD7CC;
    border-radius: 8px;
    font-family: "Host Grotesk", sans-serif;
    font-size: 16px;
    color: #103900;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.viobin-form-input:focus {
    outline: none;
    border-color: #FDBF02;
    box-shadow: 0 0 0 3px rgba(253, 191, 2, 0.1);
}

.viobin-form-input::placeholder {
    color: #999;
}

/* Form Row - Remember Me & Forgot Password */
.viobin-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Custom Checkbox */
.viobin-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.viobin-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.viobin-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border: 2px solid #CFD7CC;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.viobin-checkbox-input:checked ~ .viobin-checkbox-custom {
    background: #FDBF02;
    border-color: #FDBF02;
}

.viobin-checkbox-input:checked ~ .viobin-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #103900;
    font-size: 14px;
    font-weight: bold;
}

.viobin-checkbox-text {
    font-size: 14px;
    color: #666;
}

/* Forgot Password Link */
.viobin-forgot-link {
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    color: #1167A5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.viobin-forgot-link:hover {
    color: #103900;
    text-decoration: underline;
}

/* Buttons */
.viobin-btn {
    display: inline-block;
    font-family: "Host Grotesk", sans-serif;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 16px 32px;
    font-size: 16px;
    line-height: 1.2;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.viobin-btn-primary {
    background-color: #FDBF02;
    color: #103900;
    border-color: #FDBF02;
}

.viobin-btn-primary:hover {
    background-color: #103900;
    color: #F2F4F3;
    border-color: #103900;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 57, 0, 0.2);
}

.viobin-btn-block {
    display: block;
    width: 100%;
}

/* Form Note */
.viobin-form-note {
    font-family: "Host Grotesk", sans-serif;
    font-size: 13px;
    color: #666666;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* WooCommerce Messages */
.viobin-auth-container .woocommerce-error,
.viobin-auth-container .woocommerce-message,
.viobin-auth-container .woocommerce-info {
    margin-bottom: 30px;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .viobin-auth-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
    }
    
    .viobin-auth-column {
        padding: 40px 30px;
    }
    
    .viobin-register-column {
        background: #F2F4F3;
        border-top: 1px solid #CFD7CC;
    }
    
    /* Horizontal Divider for Mobile */
    .viobin-auth-divider {
        width: 100%;
        height: 1px;
        min-height: auto;
        background: #e0e0e0;
        padding: 20px 0;
    }
    
    .viobin-auth-divider-text {
        position: static;
        transform: none;
        background: #F2F4F3;
        border: 1px solid #CFD7CC;
    }
}

@media (max-width: 576px) {
    .viobin-auth-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .viobin-auth-wrapper {
        border-radius: 8px;
    }
    
    .viobin-auth-column {
        padding: 30px 20px;
    }
    
    .viobin-auth-title {
        font-size: 24px;
    }
    
    .viobin-auth-subtitle {
        font-size: 14px;
    }
    
    .viobin-form-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .viobin-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Loading State */
.viobin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Focus Visible for Accessibility */
.viobin-btn:focus-visible,
.viobin-form-input:focus-visible,
.viobin-checkbox-input:focus-visible ~ .viobin-checkbox-custom {
    outline: 2px solid #FDBF02;
    outline-offset: 2px;
}

