/* --- Login/Register Popup Styles --- */
.vb-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.vb-popup-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: vbPopIn 0.3s ease-out;
    transition: max-width 0.3s ease;
}

.vb-popup-content.vb-register-popup {
    max-width: 500px;
}

@keyframes vbPopIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.vb-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vb-popup-logo img {
    height: 40px;
}

.vb-back-home {
    font-size: 14px;
    color: #c25e00; /* Burnt Orange */
    text-decoration: underline;
    font-weight: 500;
}

.vb-back-home:hover {
    color: #a34e00;
}

.vb-popup-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: left;
    font-family: var(--vb-font-primary, sans-serif);
}

.vb-input-group {
    margin-bottom: 15px;
    text-align: left;
}

.vb-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.vb-input-group label span.required {
    color: #ef4444;
}

.vb-input {
    width: 100%;
    height: 40px;
    background: #eef6ff; /* Light blue background as in image */
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s;
}

.vb-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vb-password-wrapper {
    position: relative;
}

.vb-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
}

.vb-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.vb-forgot-pass {
    color: #c25e00;
    font-size: 14px;
    font-weight: 500;
}

.vb-btn-submit {
    width: 100%;
    background: #c25e00; /* Match the orange/brown button */
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.vb-btn-submit:hover {
    background: #a34e00;
}

.vb-btn-submit.disabled {
    opacity: 0.6 !important;
    filter: grayscale(1) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.vb-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    display: none; /* We have back to home, avoiding double close maybe? Or just keep it hidden for clean look */
}

/* On mobile we might want the X button */
@media (max-width: 768px) {
    .vb-popup-content {
        padding: 30px 20px;
        margin: 10px;
        max-width: 100%;
    }
    .vb-popup-logo img {
        height: 30px;
    }
}

.vb-switch-form {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.vb-switch-form a {
    color: #c25e00;
    font-weight: 600;
    text-decoration: none;
}

/* 2-Column Grid for Create Account */
.vb-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* When inside grid, mitigate extra margin if needed, but keeping it usually is fine. 
   Currently .vb-input-group has margin-bottom: 15px, which adds to the gap. 
   Let's remove margin-bottom for grid children. 
*/
.vb-register-grid .vb-input-group {
    margin-bottom: 0;
}

/* Increase popup width slightly for register view if needed, 
   but user asked for 'small', so keeping 400px but stacking could be handled on very small screens 
*/
@media (min-width: 500px) {
    /* If screen allows, expand slightly for register view via JS class toggle? 
       Or just force wider popup for register section if we had differentiation.
       For now, keep it simple.
    */
}

@media (max-width: 450px) {
    .vb-register-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
    }
}

/* OTP Section Styles */
.vb-full-width {
    grid-column: span 2;
}

@media (max-width: 450px) {
    .vb-full-width {
        grid-column: span 1;
    }
}

.vb-phone-otp-wrapper {
    display: flex;
    gap: 10px;
}

.vb-btn-otp {
    background: #c25e00;
    color: #fff;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.vb-btn-otp:hover {
    background: #a34e00;
}

.vb-btn-otp:disabled {
    background: #ccc;
    cursor: not-allowed;
}
