/* Base Styles */
.vms-auth-wrapper {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: white!important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.vms-auth-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vms-auth-left, .vms-auth-right {
    flex: 1;
    padding: 40px;
}

.vms-auth-left {
background: #aeaadd;
color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vms-auth-logo img {
    max-width: 180px;
    margin-bottom: 30px;
}

.vms-auth-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.vms-auth-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.vms-auth-features {
    margin-top: 40px;
}

.vms-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.vms-feature-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.vms-feature-item span {
    font-size: 0.95rem;
}

/* Form Styles */
.vms-auth-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.vms-auth-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

.vms-form-group {
    margin-bottom: 20px;
}

.vms-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.vms-input-with-icon {
    position: relative;
}

.vms-input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.vms-form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.vms-form-control:focus {
    border-color: #a777e3;
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.2);
    outline: none;
}

.vms-form-row {
    display: flex;
    gap: 15px;
}

.vms-form-row .vms-form-group {
    flex: 1;
}

.vms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.vms-checkbox input {
    margin-right: 8px;
}

.vms-checkbox-label {
    font-size: 0.9rem;
}

.vms-forgot-password {
    font-size: 0.9rem;
    color: #6e8efb;
    text-decoration: none;
}

.vms-forgot-password:hover {
    text-decoration: underline;
}

.vms-auth-btn {
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s;
    margin: 25px 0;
}

.vms-auth-btn:hover {
    background: linear-gradient(to right, #5d7de9, #9666d6);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.vms-auth-btn i {
    margin-left: 8px;
}

.vms-btn-text {
    display: inline-block;
}

.vms-loading .vms-btn-text {
    margin-right: 8px;
}

.vms-auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
    color: #6c757d;
}

.vms-auth-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.vms-auth-divider span {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
}

.vms-auth-footer {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
}

.vms-auth-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 500;
}

.vms-auth-link:hover {
    text-decoration: underline;
}

.vms-form-message {
    margin-top: 20px;
}

.vms-alert {
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.vms-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vms-already-logged-in {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vms-logout-btn {
    background: #6e8efb;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s;
}

.vms-logout-btn:hover {
    background: #5d7de9;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .vms-auth-container {
        flex-direction: column;
    }
    
    .vms-auth-left, .vms-auth-right {
        padding: 30px;
    }
    
    .vms-auth-left {
        text-align: center;
    }
    
    .vms-auth-logo {
        display: flex;
        justify-content: center;
    }
    
    .vms-feature-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .vms-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .vms-auth-content h1 {
        font-size: 1.8rem;
    }
    
    .vms-auth-form-container h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .vms-auth-container {
        flex-direction: column;
        height: auto;
    }
    
    .vms-auth-left, 
    .vms-auth-right {
        width: 100% !important;
        padding: 20px;
    }
    
    .vms-auth-left {
        order: 2;
        background: #8e8bb7;
        text-align: center;
    }
    
    .vms-auth-right {
        order: 1;
    }
    
    .vms-auth-features {
        justify-content: center;
    }
    
    /* Mobile menu toggle */
    .vms-mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 9999;
        background: #8e8bb7;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
    }
    
    /* Admin sidebar for mobile */
    #adminmenumain {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        z-index: 9998;
        transition: all 0.3s ease;
    }
    
    #adminmenumain.mobile-menu-open {
        left: 0;
    }
    
    #wpcontent, #wpfooter {
        margin-left: 0;
    }
    
    /* Dashboard adjustments */
    .vendor-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vms-form-row {
        flex-direction: column;
    }
    
    .vms-form-group {
        width: 100%;
    }
}
